/external/icu/icu4c/source/tools/toolutil/ |
D | swapimpl.cpp | 79 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in upname_swap() local 103 const uint8_t *inBytes=static_cast<const uint8_t *>(inData)+headerSize; in upname_swap() 104 uint8_t *outBytes=static_cast<uint8_t *>(outData)+headerSize; in upname_swap() 107 length-=headerSize; in upname_swap() 154 return headerSize+totalSize; in upname_swap() 164 int32_t headerSize, i; in uprops_swap() local 170 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in uprops_swap() 196 if(length>=0 && (length-headerSize)<(int32_t)sizeof(dataIndexes)) { in uprops_swap() 198 length-headerSize); in uprops_swap() 204 inData32=(const int32_t *)((const char *)inData+headerSize); in uprops_swap() [all …]
|
D | unewdata.c | 31 uint16_t headerSize; member 41 uint16_t headerSize, commentLength; in udata_create() local 110 headerSize=(uint16_t)(pInfo->size+4); in udata_create() 113 headerSize+=commentLength; in udata_create() 119 pData->headerSize=(uint16_t)((headerSize+15)&~0xf); in udata_create() 122 T_FileStream_write(pData->file, &pData->headerSize, 4); in udata_create() 133 headerSize&=0xf; in udata_create() 134 if(headerSize!=0) { in udata_create() 135 headerSize=(uint16_t)(16-headerSize); in udata_create() 136 uprv_memset(bytes, 0, headerSize); in udata_create() [all …]
|
/external/icu/icu4c/source/common/ |
D | udataswp.c | 290 uint16_t headerSize, infoSize; in udata_swapDataHeader() local 313 headerSize=ds->readUInt16(pHeader->dataHeader.headerSize); in udata_swapDataHeader() 316 if( headerSize<sizeof(DataHeader) || in udata_swapDataHeader() 318 headerSize<(sizeof(pHeader->dataHeader)+infoSize) || in udata_swapDataHeader() 319 (length>=0 && length<headerSize) in udata_swapDataHeader() 322 headerSize, infoSize, length); in udata_swapDataHeader() 334 uprv_memcpy(outData, inData, headerSize); in udata_swapDataHeader() 342 …ds->swapArray16(ds, &pHeader->dataHeader.headerSize, 2, &outHeader->dataHeader.headerSize, pErrorC… in udata_swapDataHeader() 350 maxLength=headerSize-infoSize; in udata_swapDataHeader() 357 return headerSize; in udata_swapDataHeader() [all …]
|
D | dictionarydata.cpp | 165 int32_t headerSize; in udict_swap() local 172 headerSize = udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in udict_swap() 186 inBytes = (const uint8_t *)inData + headerSize; in udict_swap() 187 outBytes = (uint8_t *)outData + headerSize; in udict_swap() 191 length -= headerSize; in udict_swap() 240 return headerSize + size; in udict_swap()
|
D | rbbidata.cpp | 67 int32_t headerSize = dh->dataHeader.headerSize; in RBBIDataWrapper() local 68 if ( !(headerSize >= 20 && in RBBIDataWrapper() 82 … const RBBIDataHeader *rbbidh = reinterpret_cast<const RBBIDataHeader *>(dataAsBytes + headerSize); in RBBIDataWrapper() 341 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, status); in ubrk_swap() local 352 const uint8_t *inBytes =(const uint8_t *)inData+headerSize; in ubrk_swap() 367 int32_t totalSize = headerSize + breakDataLength; in ubrk_swap() 388 uint8_t *outBytes = (uint8_t *)outData + headerSize; in ubrk_swap()
|
D | ucol_swp.cpp | 557 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in ucol_swap() local 582 inData=(const char *)inData+headerSize; in ucol_swap() 583 if(length>=0) { length-=headerSize; } in ucol_swap() 584 outData=(char *)outData+headerSize; in ucol_swap() 592 return headerSize+collationSize; in ucol_swap() 604 int32_t headerSize; in ucol_swapInverseUCA() local 614 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in ucol_swapInverseUCA() 637 inBytes=(const uint8_t *)inData+headerSize; in ucol_swapInverseUCA() 638 outBytes=(uint8_t *)outData+headerSize; in ucol_swapInverseUCA() 652 ((length-headerSize)<(8*4) || in ucol_swapInverseUCA() [all …]
|
D | ucnvsel.cpp | 305 header.dataHeader.headerSize = (uint16_t)((sizeof(header) + 15) & ~15); in ucnvsel_serialize() 318 header.dataHeader.headerSize + in ucnvsel_serialize() 323 indexes[UCNVSEL_INDEX_SIZE] = totalSize - header.dataHeader.headerSize; in ucnvsel_serialize() 329 int32_t length = header.dataHeader.headerSize; in ucnvsel_serialize() 373 int32_t headerSize = udata_swapDataHeader(ds, inData, length, outData, status); in ucnvsel_swap() local 400 length -= headerSize; in ucnvsel_swap() 409 const uint8_t *inBytes = (const uint8_t *)inData + headerSize; in ucnvsel_swap() 410 uint8_t *outBytes = (uint8_t *)outData + headerSize; in ucnvsel_swap() 460 return headerSize + size; in ucnvsel_swap() 533 if (length < (pHeader->dataHeader.headerSize + 16 * 4)) { in ucnvsel_openFromSerialized() [all …]
|
D | ucnv_io.cpp | 1142 int32_t headerSize; in ucnv_swapAliases() local 1155 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in ucnv_swapAliases() 1178 if(length>=0 && (length-headerSize)<4*(1+minTocLength)) { in ucnv_swapAliases() 1180 length-headerSize); in ucnv_swapAliases() 1185 inSectionSizes=(const uint32_t *)((const char *)inData+headerSize); in ucnv_swapAliases() 1216 if((length-headerSize)<(2*(int32_t)topOffset)) { in ucnv_swapAliases() 1218 length-headerSize); in ucnv_swapAliases() 1223 outTable=(uint16_t *)((char *)outData+headerSize); in ucnv_swapAliases() 1347 return headerSize+2*(int32_t)topOffset; in ucnv_swapAliases()
|
D | rbbirb.cpp | 158 int32_t headerSize = align8(sizeof(RBBIDataHeader)); in flattenData() local 167 int32_t totalSize = headerSize + forwardTableSize + reverseTableSize in flattenData() 187 data->fFTable = headerSize; in flattenData()
|
/external/icu/icu4c/source/i18n/ |
D | collationdatawriter.cpp | 179 int32_t headerSize; in write() local 181 headerSize = 0; // udata_create() writes the header in write() 188 headerSize = (int32_t)sizeof(header); in write() 189 U_ASSERT((headerSize & 3) == 0); // multiple of 4 bytes in write() 193 int32_t sum = headerSize + (indexesLength + reorderCodesLength) * 4; in write() 199 headerSize += 4; in write() 202 header.dataHeader.headerSize = (uint16_t)headerSize; in write() 203 if(headerSize <= capacity) { in write() 206 uprv_memset(dest + sizeof(header), 0, headerSize - (int32_t)sizeof(header)); in write() 207 dest += headerSize; in write() [all …]
|
/external/lzma/Java/Tukaani/src/org/tukaani/xz/ |
D | BlockInputStream.java | 30 private final int headerSize; field in BlockInputStream 56 headerSize = 4 * ((buf[0] & 0xFF) + 1); in BlockInputStream() 57 inData.readFully(buf, 1, headerSize - 1); in BlockInputStream() 60 if (!DecoderUtil.isCRC32Valid(buf, 0, headerSize - 4, headerSize - 4)) in BlockInputStream() 76 buf, 2, headerSize - 6); in BlockInputStream() 82 - headerSize - check.getSize(); in BlockInputStream() 129 int headerAndCheckSize = headerSize + check.getSize(); in BlockInputStream() 278 return headerSize + inCounted.getSize() + check.getSize(); in getUnpaddedSize()
|
D | BlockOutputStream.java | 24 private final int headerSize; field in BlockOutputStream 68 headerSize = buf.length + 4; in BlockOutputStream() 71 if (headerSize > EncoderUtil.BLOCK_HEADER_SIZE_MAX) in BlockOutputStream() 84 - headerSize - check.getSize(); in BlockOutputStream() 128 return headerSize + outCounted.getSize() + check.getSize(); in getUnpaddedSize()
|
/external/icu/icu4c/source/tools/icuswap/ |
D | icuswap.cpp | 341 int32_t headerSize; in udata_swapPackage() local 358 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in udata_swapPackage() 409 inBytes=(const uint8_t *)inData+headerSize; in udata_swapPackage() 417 return headerSize+4; in udata_swapPackage() 425 return headerSize+offset+(uint32_t)itemLength; in udata_swapPackage() 431 length-=headerSize; in udata_swapPackage() 455 outBytes=(uint8_t *)outData+headerSize; in udata_swapPackage() 462 return headerSize+4; in udata_swapPackage() 634 uprv_memcpy((uint8_t *)outData+headerSize, outBytes, length); in udata_swapPackage() 638 return headerSize+length; in udata_swapPackage()
|
/external/swiftshader/src/OpenGL/compiler/ |
D | PoolAlloc.h | 77 return size + 2 * guardBlockSize + headerSize(); in allocationSize() 82 return m + guardBlockSize + headerSize(); in offsetAllocation() 89 unsigned char* preGuard() const { return mem + headerSize(); } in preGuard() 104 inline static size_t headerSize() { return sizeof(TAllocation); } in headerSize() function 106 inline static size_t headerSize() { return 0; } in headerSize() function
|
/external/curl/tests/libtest/ |
D | lib1509.c | 35 long headerSize; in test() local 63 code = curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &headerSize); in test() 72 printf("header length is ........: %lu\n", headerSize); in test()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/ |
D | HeaderItem.java | 173 int headerSize; in makeAnnotator() local 185 headerSize = dexFile.readInt(out.getCursor()); in makeAnnotator() 186 out.annotate(4, "header_size: %d", headerSize); in makeAnnotator() 217 if (headerSize > ITEM_SIZE) { in makeAnnotator() 218 out.annotateTo(headerSize, "header padding"); in makeAnnotator()
|
/external/libjpeg-turbo/ |
D | rdbmp.c | 291 unsigned int headerSize; in start_input_bmp() local 315 headerSize = GET_4B(bmpinfoheader,0); in start_input_bmp() 316 if (headerSize < 12 || headerSize > 64) in start_input_bmp() 318 if (! ReadOK(source->pub.input_file, bmpinfoheader+4, headerSize-4)) in start_input_bmp() 321 switch (headerSize) { in start_input_bmp() 392 bPad = bfOffBits - (headerSize + 14); in start_input_bmp()
|
/external/lzma/C/Util/Lzma/ |
D | LzmaUtil.c | 152 size_t headerSize = LZMA_PROPS_SIZE; in Encode() local 155 res = LzmaEnc_WriteProperties(enc, header, &headerSize); in Encode() 157 header[headerSize++] = (Byte)(fileSize >> (8 * i)); in Encode() 158 if (outStream->Write(outStream, header, headerSize) != headerSize) in Encode()
|
/external/lz4/programs/ |
D | lz4io.c | 496 size_t headerSize = LZ4F_compressBegin(ctx, dstBuffer, dstBufferSize, &prefs); in LZ4IO_compressFilename_extRess() local 497 …if (LZ4F_isError(headerSize)) EXM_THROW(33, "File header generation failed : %s", LZ4F_getErrorNam… in LZ4IO_compressFilename_extRess() 498 { size_t const sizeCheck = fwrite(dstBuffer, 1, headerSize, dstFile); in LZ4IO_compressFilename_extRess() 499 if (sizeCheck!=headerSize) EXM_THROW(34, "Write error : cannot write header"); } in LZ4IO_compressFilename_extRess() 500 compressedfilesize += headerSize; in LZ4IO_compressFilename_extRess() 523 headerSize = LZ4F_compressEnd(ctx, dstBuffer, dstBufferSize, NULL); in LZ4IO_compressFilename_extRess() 524 …if (LZ4F_isError(headerSize)) EXM_THROW(38, "End of file generation failed : %s", LZ4F_getErrorNam… in LZ4IO_compressFilename_extRess() 526 { size_t const sizeCheck = fwrite(dstBuffer, 1, headerSize, dstFile); in LZ4IO_compressFilename_extRess() 527 if (sizeCheck!=headerSize) EXM_THROW(39, "Write error : cannot write end of stream"); } in LZ4IO_compressFilename_extRess() 528 compressedfilesize += headerSize; in LZ4IO_compressFilename_extRess()
|
/external/lzma/C/ |
D | XzIn.c | 28 unsigned headerSize; in XzBlock_ReadHeader() local 31 headerSize = ((unsigned)header[0] << 2) + 4; in XzBlock_ReadHeader() 32 if (headerSize == 0) in XzBlock_ReadHeader() 40 *headerSizeRes = headerSize; in XzBlock_ReadHeader() 41 RINOK(SeqInStream_Read(inStream, header + 1, headerSize - 1)); in XzBlock_ReadHeader()
|
D | XzDec.c | 524 UInt32 headerSize = (UInt32)header[0] << 2; in XzBlock_Parse() local 526 if (CrcCalc(header, headerSize) != GetUi32(header + headerSize)) in XzBlock_Parse() 530 if (pos == headerSize) in XzBlock_Parse() 536 READ_VARINT_AND_CHECK(header, pos, headerSize, &p->packSize); in XzBlock_Parse() 537 if (p->packSize == 0 || p->packSize + headerSize >= (UInt64)1 << 63) in XzBlock_Parse() 542 READ_VARINT_AND_CHECK(header, pos, headerSize, &p->unpackSize); in XzBlock_Parse() 549 READ_VARINT_AND_CHECK(header, pos, headerSize, &filter->id); in XzBlock_Parse() 550 READ_VARINT_AND_CHECK(header, pos, headerSize, &size); in XzBlock_Parse() 551 if (size > headerSize - pos || size > XZ_FILTER_PROPS_SIZE_MAX) in XzBlock_Parse() 567 while (pos < headerSize) in XzBlock_Parse()
|
/external/libese/esed/pn81a/ |
D | apdu.cpp | 25 constexpr size_t headerSize = 4; in CommandApdu() local 36 const size_t commandSize = headerSize + lcSize + lc + leSize; in CommandApdu()
|
/external/opencv/ |
D | cvjni.h | 183 int headerSize = 14 /* fileheader */ + bitmapHeaderSize + paletteSize; in loadImageBytes() local 186 int testSize = fileStep*height + headerSize; in loadImageBytes() 195 m_strm->PutDWord( fileStep*height + headerSize ); // file size in loadImageBytes() 197 m_strm->PutDWord( headerSize ); in loadImageBytes()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | RBBIRuleBuilder.java | 176 int headerSize = 24 * 4; // align8(sizeof(RBBIDataHeader)); in flattenData() local 184 int totalSize = headerSize + forwardTableSize + reverseTableSize in flattenData() 202 header[RBBIDataWrapper.DH_FTABLE] = headerSize; // fFTable in flattenData()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | RBBIRuleBuilder.java | 177 int headerSize = 24 * 4; // align8(sizeof(RBBIDataHeader)); in flattenData() local 185 int totalSize = headerSize + forwardTableSize + reverseTableSize in flattenData() 203 header[RBBIDataWrapper.DH_FTABLE] = headerSize; // fFTable in flattenData()
|