/external/minijail/ |
D | elfparse.c | 27 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/ |
D | ucmndata.cpp | 73 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 …]
|
D | udataswp.cpp | 289 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 …]
|
D | udatamem.cpp | 87 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()
|
D | umapfile.cpp | 188 pData->pHeader=(const DataHeader *)MapViewOfFile(map, FILE_MAP_READ, 0, 0, 0); in uprv_mapFile() 189 if(pData->pHeader==NULL) { in uprv_mapFile() 200 UnmapViewOfFile(pData->pHeader); in uprv_unmapFile() 202 pData->pHeader=NULL; in uprv_unmapFile() 248 pData->pHeader=(const DataHeader *)data; in uprv_mapFile() 262 pData->pHeader=NULL; in uprv_unmapFile() 326 pData->pHeader=(const DataHeader *)p; in uprv_mapFile() 337 pData->pHeader = NULL; in uprv_unmapFile() 423 const DataHeader *pHeader; in uprv_mapFile() local 466 pData->pHeader=(const DataHeader *)data; in uprv_mapFile() [all …]
|
D | udata.cpp | 153 … if ((gCommonICUDataArray[i] != NULL) && (gCommonICUDataArray[i]->pHeader == pData->pHeader)) { in findCommonICUDataByName() 191 } else if (gCommonICUDataArray[i]->pHeader == pData->pHeader) { in setCommonICUData() 696 if(gCommonICUDataArray[i]->pHeader == &U_ICUDATA_ENTRY_POINT) { in openCommonData() 946 const DataHeader *pHeader, /* The data item to be checked. */ in checkDataItem() argument 963 if(pHeader->dataHeader.magic1==0xda && in checkDataItem() 964 pHeader->dataHeader.magic2==0x27 && in checkDataItem() 965 (isAcceptable==NULL || isAcceptable(context, type, name, &pHeader->info)) in checkDataItem() 971 rDataMem->pHeader = pHeader; in checkDataItem() 1007 …pEntryData = checkDataItem(dataMemory.pHeader, isAcceptable, context, type, name, subErrorCode, pE… in doLoadFromIndividualFiles() 1051 const DataHeader *pHeader; in doLoadFromCommonData() local [all …]
|
D | ucnvsel.cpp | 485 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 …]
|
D | udatamem.h | 30 const DataHeader *pHeader; /* Header of the memory being described by this */ member
|
D | rbbidata.cpp | 49 const DataHeader *dh = udm->pHeader; in RBBIDataWrapper()
|
/external/skqp/third_party/etc1/ |
D | etc1.cpp | 643 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 …]
|
D | etc1.h | 96 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/skia/third_party/etc1/ |
D | etc1.cpp | 643 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 …]
|
D | etc1.h | 96 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/icu/icu4c/source/tools/toolutil/ |
D | package.cpp | 115 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 …]
|
D | pkg_genc.cpp | 673 const IMAGE_FILE_HEADER *pHeader; in getArchitecture() local 761 pHeader=(const IMAGE_FILE_HEADER *)buffer.bytes; in getArchitecture() 762 *pCPU=pHeader->Machine; in getArchitecture()
|
/external/swiftshader/third_party/SPIRV-Tools/source/ |
D | binary.cpp | 37 spv_header_t* pHeader) { in spvBinaryHeaderGet() argument 41 if (!pHeader) return SPV_ERROR_INVALID_POINTER; in spvBinaryHeaderGet() 44 pHeader->magic = spvFixWord(binary->code[SPV_INDEX_MAGIC_NUMBER], endian); in spvBinaryHeaderGet() 45 pHeader->version = spvFixWord(binary->code[SPV_INDEX_VERSION_NUMBER], endian); in spvBinaryHeaderGet() 46 pHeader->generator = in spvBinaryHeaderGet() 48 pHeader->bound = spvFixWord(binary->code[SPV_INDEX_BOUND], endian); in spvBinaryHeaderGet() 49 pHeader->schema = spvFixWord(binary->code[SPV_INDEX_SCHEMA], endian); in spvBinaryHeaderGet() 50 pHeader->instructions = &binary->code[SPV_INDEX_INSTRUCTION]; in spvBinaryHeaderGet()
|
/external/deqp-deps/SPIRV-Tools/source/ |
D | binary.cpp | 37 spv_header_t* pHeader) { in spvBinaryHeaderGet() argument 41 if (!pHeader) return SPV_ERROR_INVALID_POINTER; in spvBinaryHeaderGet() 44 pHeader->magic = spvFixWord(binary->code[SPV_INDEX_MAGIC_NUMBER], endian); in spvBinaryHeaderGet() 45 pHeader->version = spvFixWord(binary->code[SPV_INDEX_VERSION_NUMBER], endian); in spvBinaryHeaderGet() 46 pHeader->generator = in spvBinaryHeaderGet() 48 pHeader->bound = spvFixWord(binary->code[SPV_INDEX_BOUND], endian); in spvBinaryHeaderGet() 49 pHeader->schema = spvFixWord(binary->code[SPV_INDEX_SCHEMA], endian); in spvBinaryHeaderGet() 50 pHeader->instructions = &binary->code[SPV_INDEX_INSTRUCTION]; in spvBinaryHeaderGet()
|
/external/libpcap/ |
D | pcap-tc.c | 69 …nPacketsBufferQueryNextPacket)(TC_PACKETS_BUFFER buffer, PTC_PACKET_HEADER pHeader, PVOID *ppData); 70 …cnPacketsBufferCommitNextPacket)(TC_PACKETS_BUFFER buffer, PTC_PACKET_HEADER pHeader, PVOID pData);
|