Home
last modified time | relevance | path

Searched refs:headerSize (Results 1 – 25 of 64) sorted by relevance

123

/external/icu/icu4c/source/tools/toolutil/
Dswapimpl.cpp77 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in upname_swap() local
101 const uint8_t *inBytes=static_cast<const uint8_t *>(inData)+headerSize; in upname_swap()
102 uint8_t *outBytes=static_cast<uint8_t *>(outData)+headerSize; in upname_swap()
105 length-=headerSize; in upname_swap()
152 return headerSize+totalSize; in upname_swap()
162 int32_t headerSize, i; in uprops_swap() local
168 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in uprops_swap()
194 if(length>=0 && (length-headerSize)<(int32_t)sizeof(dataIndexes)) { in uprops_swap()
196 length-headerSize); in uprops_swap()
202 inData32=(const int32_t *)((const char *)inData+headerSize); in uprops_swap()
[all …]
Dunewdata.c29 uint16_t headerSize; member
39 uint16_t headerSize, commentLength; in udata_create() local
108 headerSize=(uint16_t)(pInfo->size+4); in udata_create()
111 headerSize+=commentLength; in udata_create()
117 pData->headerSize=(uint16_t)((headerSize+15)&~0xf); in udata_create()
120 T_FileStream_write(pData->file, &pData->headerSize, 4); in udata_create()
131 headerSize&=0xf; in udata_create()
132 if(headerSize!=0) { in udata_create()
133 headerSize=(uint16_t)(16-headerSize); in udata_create()
134 uprv_memset(bytes, 0, headerSize); in udata_create()
[all …]
/external/icu/icu4c/source/common/
Dudataswp.c288 uint16_t headerSize, infoSize; in udata_swapDataHeader() local
311 headerSize=ds->readUInt16(pHeader->dataHeader.headerSize); in udata_swapDataHeader()
314 if( headerSize<sizeof(DataHeader) || in udata_swapDataHeader()
316 headerSize<(sizeof(pHeader->dataHeader)+infoSize) || in udata_swapDataHeader()
317 (length>=0 && length<headerSize) in udata_swapDataHeader()
320 headerSize, infoSize, length); in udata_swapDataHeader()
332 uprv_memcpy(outData, inData, headerSize); in udata_swapDataHeader()
340 …ds->swapArray16(ds, &pHeader->dataHeader.headerSize, 2, &outHeader->dataHeader.headerSize, pErrorC… in udata_swapDataHeader()
348 maxLength=headerSize-infoSize; in udata_swapDataHeader()
355 return headerSize; in udata_swapDataHeader()
[all …]
Ddictionarydata.cpp163 int32_t headerSize; in udict_swap() local
170 headerSize = udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in udict_swap()
184 inBytes = (const uint8_t *)inData + headerSize; in udict_swap()
185 outBytes = (uint8_t *)outData + headerSize; in udict_swap()
189 length -= headerSize; in udict_swap()
238 return headerSize + size; in udict_swap()
Drbbidata.cpp65 int32_t headerSize = dh->dataHeader.headerSize; in RBBIDataWrapper() local
66 if ( !(headerSize >= 20 && in RBBIDataWrapper()
80 … const RBBIDataHeader *rbbidh = reinterpret_cast<const RBBIDataHeader *>(dataAsBytes + headerSize); in RBBIDataWrapper()
339 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, status); in ubrk_swap() local
350 const uint8_t *inBytes =(const uint8_t *)inData+headerSize; in ubrk_swap()
365 int32_t totalSize = headerSize + breakDataLength; in ubrk_swap()
386 uint8_t *outBytes = (uint8_t *)outData + headerSize; in ubrk_swap()
Ducnvsel.cpp303 header.dataHeader.headerSize = (uint16_t)((sizeof(header) + 15) & ~15); in ucnvsel_serialize()
316 header.dataHeader.headerSize + in ucnvsel_serialize()
321 indexes[UCNVSEL_INDEX_SIZE] = totalSize - header.dataHeader.headerSize; in ucnvsel_serialize()
327 int32_t length = header.dataHeader.headerSize; in ucnvsel_serialize()
371 int32_t headerSize = udata_swapDataHeader(ds, inData, length, outData, status); in ucnvsel_swap() local
398 length -= headerSize; in ucnvsel_swap()
407 const uint8_t *inBytes = (const uint8_t *)inData + headerSize; in ucnvsel_swap()
408 uint8_t *outBytes = (uint8_t *)outData + headerSize; in ucnvsel_swap()
458 return headerSize + size; in ucnvsel_swap()
531 if (length < (pHeader->dataHeader.headerSize + 16 * 4)) { in ucnvsel_openFromSerialized()
[all …]
Ducol_swp.cpp555 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in ucol_swap() local
580 inData=(const char *)inData+headerSize; in ucol_swap()
581 if(length>=0) { length-=headerSize; } in ucol_swap()
582 outData=(char *)outData+headerSize; in ucol_swap()
590 return headerSize+collationSize; in ucol_swap()
602 int32_t headerSize; in ucol_swapInverseUCA() local
612 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in ucol_swapInverseUCA()
635 inBytes=(const uint8_t *)inData+headerSize; in ucol_swapInverseUCA()
636 outBytes=(uint8_t *)outData+headerSize; in ucol_swapInverseUCA()
650 ((length-headerSize)<(8*4) || in ucol_swapInverseUCA()
[all …]
Ducnv_io.cpp1129 int32_t headerSize; in ucnv_swapAliases() local
1142 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in ucnv_swapAliases()
1165 if(length>=0 && (length-headerSize)<4*(1+minTocLength)) { in ucnv_swapAliases()
1167 length-headerSize); in ucnv_swapAliases()
1172 inSectionSizes=(const uint32_t *)((const char *)inData+headerSize); in ucnv_swapAliases()
1203 if((length-headerSize)<(2*(int32_t)topOffset)) { in ucnv_swapAliases()
1205 length-headerSize); in ucnv_swapAliases()
1210 outTable=(uint16_t *)((char *)outData+headerSize); in ucnv_swapAliases()
1334 return headerSize+2*(int32_t)topOffset; in ucnv_swapAliases()
/external/icu/icu4c/source/i18n/
Dcollationdatawriter.cpp177 int32_t headerSize; in write() local
179 headerSize = 0; // udata_create() writes the header in write()
186 headerSize = (int32_t)sizeof(header); in write()
187 U_ASSERT((headerSize & 3) == 0); // multiple of 4 bytes in write()
191 int32_t sum = headerSize + (indexesLength + reorderCodesLength) * 4; in write()
197 headerSize += 4; in write()
200 header.dataHeader.headerSize = (uint16_t)headerSize; in write()
201 if(headerSize <= capacity) { in write()
204 uprv_memset(dest + sizeof(header), 0, headerSize - (int32_t)sizeof(header)); in write()
205 dest += headerSize; in write()
[all …]
/external/lzma/Java/Tukaani/src/org/tukaani/xz/
DBlockInputStream.java30 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()
DBlockOutputStream.java24 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/lz4/programs/
Dlz4io.c377 size_t sizeCheck, headerSize, readSize, outBuffSize; in LZ4IO_compressFilename() local
405 headerSize = LZ4F_compressBegin(ctx, out_buff, outBuffSize, &prefs); in LZ4IO_compressFilename()
406 …if (LZ4F_isError(headerSize)) EXM_THROW(32, "File header generation failed : %s", LZ4F_getErrorNam… in LZ4IO_compressFilename()
407 sizeCheck = fwrite(out_buff, 1, headerSize, foutput); in LZ4IO_compressFilename()
408 if (sizeCheck!=headerSize) EXM_THROW(33, "Write error : cannot write header"); in LZ4IO_compressFilename()
409 compressedfilesize += headerSize; in LZ4IO_compressFilename()
436 headerSize = LZ4F_compressEnd(ctx, out_buff, outBuffSize, NULL); in LZ4IO_compressFilename()
437 …if (LZ4F_isError(headerSize)) EXM_THROW(36, "End of file generation failed : %s", LZ4F_getErrorNam… in LZ4IO_compressFilename()
439 sizeCheck = fwrite(out_buff, 1, headerSize, foutput); in LZ4IO_compressFilename()
440 if (sizeCheck!=headerSize) EXM_THROW(37, "Write error : cannot write end of stream"); in LZ4IO_compressFilename()
[all …]
/external/jetty/src/java/org/eclipse/jetty/io/
DBuffersFactory.java23 …public static Buffers newBuffers(Buffers.Type headerType, int headerSize, Buffers.Type bufferType,… in newBuffers() argument
26 return new PooledBuffers(headerType,headerSize,bufferType,bufferSize,otherType,maxSize); in newBuffers()
27 return new ThreadLocalBuffers(headerType,headerSize,bufferType,bufferSize,otherType); in newBuffers()
DAbstractBuffers.java33 …public AbstractBuffers(Buffers.Type headerType, int headerSize, Buffers.Type bufferType, int buffe… in AbstractBuffers() argument
36 _headerSize=headerSize; in AbstractBuffers()
DThreadLocalBuffers.java41 …public ThreadLocalBuffers(Buffers.Type headerType, int headerSize, Buffers.Type bufferType, int bu… in ThreadLocalBuffers() argument
43 super(headerType,headerSize,bufferType,bufferSize,otherType); in ThreadLocalBuffers()
DPooledBuffers.java36 …public PooledBuffers(Buffers.Type headerType, int headerSize, Buffers.Type bufferType, int bufferS… in PooledBuffers() argument
38 super(headerType,headerSize,bufferType,bufferSize,otherType); in PooledBuffers()
/external/icu/icu4c/source/tools/icuswap/
Dicuswap.cpp339 int32_t headerSize; in udata_swapPackage() local
356 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in udata_swapPackage()
407 inBytes=(const uint8_t *)inData+headerSize; in udata_swapPackage()
415 return headerSize+4; in udata_swapPackage()
423 return headerSize+offset+(uint32_t)itemLength; in udata_swapPackage()
429 length-=headerSize; in udata_swapPackage()
453 outBytes=(uint8_t *)outData+headerSize; in udata_swapPackage()
460 return headerSize+4; in udata_swapPackage()
632 uprv_memcpy((uint8_t *)outData+headerSize, outBytes, length); in udata_swapPackage()
636 return headerSize+length; in udata_swapPackage()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/
DHeaderItem.java172 int headerSize; in makeAnnotator() local
184 headerSize = dexFile.readInt(out.getCursor()); in makeAnnotator()
185 out.annotate(4, "header_size: %d", headerSize); in makeAnnotator()
216 if (headerSize > ITEM_SIZE) { in makeAnnotator()
217 out.annotateTo(headerSize, "header padding"); in makeAnnotator()
/external/curl/tests/libtest/
Dlib1509.c35 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/libjpeg-turbo/
Drdbmp.c290 unsigned int headerSize; in start_input_bmp() local
314 headerSize = GET_4B(bmpinfoheader,0); in start_input_bmp()
315 if (headerSize < 12 || headerSize > 64) in start_input_bmp()
317 if (! ReadOK(source->pub.input_file, bmpinfoheader+4, headerSize-4)) in start_input_bmp()
320 switch (headerSize) { in start_input_bmp()
391 bPad = bfOffBits - (headerSize + 14); in start_input_bmp()
/external/lzma/C/Util/Lzma/
DLzmaUtil.c152 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/lzma/C/
DXzIn.c28 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()
DXzDec.c524 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/opencv/
Dcvjni.h183 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/dexmaker/src/dx/java/com/android/dx/dex/file/
DUniformListItem.java160 offset += headerSize(); in place0()
209 private int headerSize() { in headerSize() method in UniformListItem

123