Home
last modified time | relevance | path

Searched refs:pHeader (Results 1 – 21 of 21) sorted by relevance

/external/minijail/
Delfparse.c27 Minijail_Elf ## bit ## _Ehdr *pHeader = NULL; \
34 pHeader = (Minijail_Elf ## bit ## _Ehdr *)pHead; \
36 pHeader->e_phoff = le ## bit ## toh(pHeader->e_phoff); \
37 pHeader->e_phentsize = le16toh(pHeader->e_phentsize); \
38 pHeader->e_phnum = le16toh(pHeader->e_phnum); \
40 pHeader->e_phoff = be ## bit ## toh(pHeader->e_phoff); \
41 pHeader->e_phentsize = be16toh(pHeader->e_phentsize); \
42 pHeader->e_phnum = be16toh(pHeader->e_phnum); \
44 if (pHeader->e_phentsize != sizeof(Minijail_Elf ## bit ## _Phdr)) \
47 if (fseek(elf_file, pHeader->e_phoff, SEEK_SET) != 0) \
[all …]
/external/icu/icu4c/source/common/
Ducmndata.cpp73 const DataHeader *pHeader; member
267 return pData->pHeader; in offsetTOCLookupFn()
299 return UDataMemory_normalizeDataPointer(toc->entry[number].pHeader); in pointerTOCLookupFn()
307 return pData->pHeader; in pointerTOCLookupFn()
331 if(udm==NULL || udm->pHeader==NULL) { in udata_checkCommonData()
333 } else if(!(udm->pHeader->dataHeader.magic1==0xda && in udata_checkCommonData()
334 udm->pHeader->dataHeader.magic2==0x27 && in udata_checkCommonData()
335 udm->pHeader->info.isBigEndian==U_IS_BIG_ENDIAN && in udata_checkCommonData()
336 udm->pHeader->info.charsetFamily==U_CHARSET_FAMILY) in udata_checkCommonData()
341 else if (udm->pHeader->info.dataFormat[0]==0x43 && in udata_checkCommonData()
[all …]
Dudatamem.cpp87 This->pHeader = UDataMemory_normalizeDataPointer(dataAddr); in UDataMemory_setData()
105 if(pData!=NULL && pData->pHeader!=NULL) { in udata_getMemory()
106 return (char *)(pData->pHeader)+udata_getHeaderSize(pData->pHeader); in udata_getMemory()
134 if(pData!=NULL && pData->pHeader!=NULL && pData->length>=0) { in udata_getLength()
139 return pData->length-udata_getHeaderSize(pData->pHeader); in udata_getLength()
152 if(pData!=NULL && pData->pHeader!=NULL) { in udata_getRawMemory()
153 return pData->pHeader; in udata_getRawMemory()
160 return This->pHeader != NULL; in UDataMemory_isLoaded()
Dudataswp.cpp289 const DataHeader *pHeader; in udata_swapDataHeader() local
302 pHeader=(const DataHeader *)inData; in udata_swapDataHeader()
304 pHeader->dataHeader.magic1!=0xda || in udata_swapDataHeader()
305 pHeader->dataHeader.magic2!=0x27 || in udata_swapDataHeader()
306 pHeader->info.sizeofUChar!=2 in udata_swapDataHeader()
313 headerSize=ds->readUInt16(pHeader->dataHeader.headerSize); in udata_swapDataHeader()
314 infoSize=ds->readUInt16(pHeader->info.size); in udata_swapDataHeader()
318 headerSize<(sizeof(pHeader->dataHeader)+infoSize) || in udata_swapDataHeader()
342 …ds->swapArray16(ds, &pHeader->dataHeader.headerSize, 2, &outHeader->dataHeader.headerSize, pErrorC… in udata_swapDataHeader()
345 ds->swapArray16(ds, &pHeader->info.size, 4, &outHeader->info.size, pErrorCode); in udata_swapDataHeader()
[all …]
Dumapfile.cpp190 … pData->pHeader = reinterpret_cast<const DataHeader *>(MapViewOfFile(map, FILE_MAP_READ, 0, 0, 0)); in uprv_mapFile()
191 if (pData->pHeader == nullptr) { in uprv_mapFile()
202 UnmapViewOfFile(pData->pHeader); in uprv_unmapFile()
204 pData->pHeader = nullptr; in uprv_unmapFile()
250 pData->pHeader=(const DataHeader *)data; in uprv_mapFile()
264 pData->pHeader=nullptr; in uprv_unmapFile()
328 pData->pHeader=(const DataHeader *)p; in uprv_mapFile()
339 pData->pHeader = nullptr; in uprv_unmapFile()
425 const DataHeader *pHeader; in uprv_mapFile() local
468 pData->pHeader=(const DataHeader *)data; in uprv_mapFile()
[all …]
Dudata.cpp180 … if ((gCommonICUDataArray[i] != NULL) && (gCommonICUDataArray[i]->pHeader == pData->pHeader)) { in findCommonICUDataByName()
218 } else if (gCommonICUDataArray[i]->pHeader == pData->pHeader) { in setCommonICUData()
724 if(gCommonICUDataArray[i]->pHeader == &U_ICUDATA_ENTRY_POINT) { in openCommonData()
982 const DataHeader *pHeader, /* The data item to be checked. */ in checkDataItem() argument
999 if(pHeader->dataHeader.magic1==0xda && in checkDataItem()
1000 pHeader->dataHeader.magic2==0x27 && in checkDataItem()
1001 (isAcceptable==NULL || isAcceptable(context, type, name, &pHeader->info)) in checkDataItem()
1007 rDataMem->pHeader = pHeader; in checkDataItem()
1043 …pEntryData = checkDataItem(dataMemory.pHeader, isAcceptable, context, type, name, subErrorCode, pE… in doLoadFromIndividualFiles()
1087 const DataHeader *pHeader; in doLoadFromCommonData() local
[all …]
Ducnvsel.cpp485 const DataHeader *pHeader = (const DataHeader *)p; in ucnvsel_openFromSerialized() local
487 pHeader->dataHeader.magic1==0xda && in ucnvsel_openFromSerialized()
488 pHeader->dataHeader.magic2==0x27 && in ucnvsel_openFromSerialized()
489 pHeader->info.dataFormat[0] == 0x43 && in ucnvsel_openFromSerialized()
490 pHeader->info.dataFormat[1] == 0x53 && in ucnvsel_openFromSerialized()
491 pHeader->info.dataFormat[2] == 0x65 && in ucnvsel_openFromSerialized()
492 pHeader->info.dataFormat[3] == 0x6c in ucnvsel_openFromSerialized()
498 if (pHeader->info.formatVersion[0] != 1) { in ucnvsel_openFromSerialized()
503 if (pHeader->info.isBigEndian != U_IS_BIG_ENDIAN || in ucnvsel_openFromSerialized()
504 pHeader->info.charsetFamily != U_CHARSET_FAMILY in ucnvsel_openFromSerialized()
[all …]
Dudatamem.h30 const DataHeader *pHeader; /* Header of the memory being described by this */ member
Drbbidata.cpp49 const DataHeader *dh = udm->pHeader; in RBBIDataWrapper()
/external/skia/third_party/etc1/
Detc1.cpp638 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height) { in etc1_pkm_format_header() argument
639 memcpy(pHeader, kMagic, sizeof(kMagic)); in etc1_pkm_format_header()
642 writeBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET, ETC1_RGB_NO_MIPMAPS); in etc1_pkm_format_header()
643 writeBEUint16(pHeader + ETC1_PKM_ENCODED_WIDTH_OFFSET, encodedWidth); in etc1_pkm_format_header()
644 writeBEUint16(pHeader + ETC1_PKM_ENCODED_HEIGHT_OFFSET, encodedHeight); in etc1_pkm_format_header()
645 writeBEUint16(pHeader + ETC1_PKM_WIDTH_OFFSET, width); in etc1_pkm_format_header()
646 writeBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET, height); in etc1_pkm_format_header()
651 etc1_bool etc1_pkm_is_valid(const etc1_byte* pHeader) { in etc1_pkm_is_valid() argument
652 if (memcmp(pHeader, kMagic, sizeof(kMagic))) { in etc1_pkm_is_valid()
655 etc1_uint32 format = readBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET); in etc1_pkm_is_valid()
[all …]
Detc1.h96 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height);
100 etc1_bool etc1_pkm_is_valid(const etc1_byte* pHeader);
104 etc1_uint32 etc1_pkm_get_width(const etc1_byte* pHeader);
108 etc1_uint32 etc1_pkm_get_height(const etc1_byte* pHeader);
/external/skqp/third_party/etc1/
Detc1.cpp643 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height) { in etc1_pkm_format_header() argument
644 memcpy(pHeader, kMagic, sizeof(kMagic)); in etc1_pkm_format_header()
647 writeBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET, ETC1_RGB_NO_MIPMAPS); in etc1_pkm_format_header()
648 writeBEUint16(pHeader + ETC1_PKM_ENCODED_WIDTH_OFFSET, encodedWidth); in etc1_pkm_format_header()
649 writeBEUint16(pHeader + ETC1_PKM_ENCODED_HEIGHT_OFFSET, encodedHeight); in etc1_pkm_format_header()
650 writeBEUint16(pHeader + ETC1_PKM_WIDTH_OFFSET, width); in etc1_pkm_format_header()
651 writeBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET, height); in etc1_pkm_format_header()
656 etc1_bool etc1_pkm_is_valid(const etc1_byte* pHeader) { in etc1_pkm_is_valid() argument
657 if (memcmp(pHeader, kMagic, sizeof(kMagic))) { in etc1_pkm_is_valid()
660 etc1_uint32 format = readBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET); in etc1_pkm_is_valid()
[all …]
Detc1.h96 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height);
100 etc1_bool etc1_pkm_is_valid(const etc1_byte* pHeader);
104 etc1_uint32 etc1_pkm_get_width(const etc1_byte* pHeader);
108 etc1_uint32 etc1_pkm_get_height(const etc1_byte* pHeader);
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/
Dbinary.cpp39 spv_header_t* pHeader) { in spvBinaryHeaderGet() argument
43 if (!pHeader) return SPV_ERROR_INVALID_POINTER; in spvBinaryHeaderGet()
46 pHeader->magic = spvFixWord(binary->code[SPV_INDEX_MAGIC_NUMBER], endian); in spvBinaryHeaderGet()
47 pHeader->version = spvFixWord(binary->code[SPV_INDEX_VERSION_NUMBER], endian); in spvBinaryHeaderGet()
49 if ((pHeader->version & 0x000000ff) || pHeader->version & 0xff000000) in spvBinaryHeaderGet()
52 if (pHeader->version < SPV_SPIRV_VERSION_WORD(1, 0) || in spvBinaryHeaderGet()
53 pHeader->version > SPV_VERSION) in spvBinaryHeaderGet()
56 pHeader->generator = in spvBinaryHeaderGet()
58 pHeader->bound = spvFixWord(binary->code[SPV_INDEX_BOUND], endian); in spvBinaryHeaderGet()
59 pHeader->schema = spvFixWord(binary->code[SPV_INDEX_SCHEMA], endian); in spvBinaryHeaderGet()
[all …]
/external/deqp-deps/SPIRV-Tools/source/
Dbinary.cpp39 spv_header_t* pHeader) { in spvBinaryHeaderGet() argument
43 if (!pHeader) return SPV_ERROR_INVALID_POINTER; in spvBinaryHeaderGet()
46 pHeader->magic = spvFixWord(binary->code[SPV_INDEX_MAGIC_NUMBER], endian); in spvBinaryHeaderGet()
47 pHeader->version = spvFixWord(binary->code[SPV_INDEX_VERSION_NUMBER], endian); in spvBinaryHeaderGet()
49 if ((pHeader->version & 0x000000ff) || pHeader->version & 0xff000000) in spvBinaryHeaderGet()
52 if (pHeader->version < SPV_SPIRV_VERSION_WORD(1, 0) || in spvBinaryHeaderGet()
53 pHeader->version > SPV_VERSION) in spvBinaryHeaderGet()
56 pHeader->generator = in spvBinaryHeaderGet()
58 pHeader->bound = spvFixWord(binary->code[SPV_INDEX_BOUND], endian); in spvBinaryHeaderGet()
59 pHeader->schema = spvFixWord(binary->code[SPV_INDEX_SCHEMA], endian); in spvBinaryHeaderGet()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/
Dbinary.cpp39 spv_header_t* pHeader) { in spvBinaryHeaderGet() argument
43 if (!pHeader) return SPV_ERROR_INVALID_POINTER; in spvBinaryHeaderGet()
46 pHeader->magic = spvFixWord(binary->code[SPV_INDEX_MAGIC_NUMBER], endian); in spvBinaryHeaderGet()
47 pHeader->version = spvFixWord(binary->code[SPV_INDEX_VERSION_NUMBER], endian); in spvBinaryHeaderGet()
49 if ((pHeader->version & 0x000000ff) || pHeader->version & 0xff000000) in spvBinaryHeaderGet()
52 if (pHeader->version < SPV_SPIRV_VERSION_WORD(1, 0) || in spvBinaryHeaderGet()
53 pHeader->version > SPV_VERSION) in spvBinaryHeaderGet()
56 pHeader->generator = in spvBinaryHeaderGet()
58 pHeader->bound = spvFixWord(binary->code[SPV_INDEX_BOUND], endian); in spvBinaryHeaderGet()
59 pHeader->schema = spvFixWord(binary->code[SPV_INDEX_SCHEMA], endian); in spvBinaryHeaderGet()
[all …]
/external/icu/icu4c/source/tools/toolutil/
Dpackage.cpp115 const DataHeader *pHeader; in getDataInfo() local
128 pHeader=(const DataHeader *)data; in getDataInfo()
129 pInfo=&pHeader->info; in getDataInfo()
131 pHeader->dataHeader.magic1!=0xda || in getDataInfo()
132 pHeader->dataHeader.magic2!=0x27 || in getDataInfo()
140 headerLength=pHeader->dataHeader.headerSize; in getDataInfo()
143 headerLength=readSwapUInt16(pHeader->dataHeader.headerSize); in getDataInfo()
149 headerLength<(int32_t)(sizeof(pHeader->dataHeader)+infoLength) || in getDataInfo()
405 DataHeader *pHeader; in Package() local
406 pHeader=(DataHeader *)header; in Package()
[all …]
Dpkg_genc.cpp765 const IMAGE_FILE_HEADER *pHeader; in getArchitecture() local
860 pHeader=(const IMAGE_FILE_HEADER *)buffer.bytes; in getArchitecture()
861 *pCPU=pHeader->Machine; in getArchitecture()
/external/icu/libicu/cts_headers/
Dudatamem.h30 const DataHeader *pHeader; /* Header of the memory being described by this */ member
/external/libpcap/
Dpcap-tc.c69 …nPacketsBufferQueryNextPacket)(TC_PACKETS_BUFFER buffer, PTC_PACKET_HEADER pHeader, PVOID *ppData);
70 …cnPacketsBufferCommitNextPacket)(TC_PACKETS_BUFFER buffer, PTC_PACKET_HEADER pHeader, PVOID pData);
/external/OpenCL-CTS/test_common/miniz/
Dminiz.c2748 …const mz_uint8 *pHeader = &MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir, mz_uint8, MZ_ZIP_A… in mz_zip_reader_locate_file() local
2749 mz_uint filename_len = MZ_READ_LE16(pHeader + MZ_ZIP_CDH_FILENAME_LEN_OFS); in mz_zip_reader_locate_file()
2750 const char *pFilename = (const char *)pHeader + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE; in mz_zip_reader_locate_file()
2755 …mz_uint file_extra_len = MZ_READ_LE16(pHeader + MZ_ZIP_CDH_EXTRA_LEN_OFS), file_comment_len = MZ_R… in mz_zip_reader_locate_file()