Home
last modified time | relevance | path

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

123

/external/icu/icu4c/source/tools/toolutil/
Dswapimpl.cpp80 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in upname_swap() local
104 const uint8_t *inBytes=static_cast<const uint8_t *>(inData)+headerSize; in upname_swap()
105 uint8_t *outBytes=static_cast<uint8_t *>(outData)+headerSize; in upname_swap()
108 length-=headerSize; in upname_swap()
155 return headerSize+totalSize; in upname_swap()
165 int32_t headerSize, i; in uprops_swap() local
171 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in uprops_swap()
197 if(length>=0 && (length-headerSize)<(int32_t)sizeof(dataIndexes)) { in uprops_swap()
199 length-headerSize); in uprops_swap()
205 inData32=(const int32_t *)((const char *)inData+headerSize); in uprops_swap()
[all …]
Dunewdata.cpp31 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/
Dudataswp.cpp290 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 …]
Drbbidata.cpp50 int32_t headerSize = dh->dataHeader.headerSize; in RBBIDataWrapper() local
51 if ( !(headerSize >= 20 && in RBBIDataWrapper()
64 … const RBBIDataHeader *rbbidh = reinterpret_cast<const RBBIDataHeader *>(dataAsBytes + headerSize); in RBBIDataWrapper()
318 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, status); in ubrk_swap() local
324 const uint8_t *inBytes =(const uint8_t *)inData+headerSize; in ubrk_swap()
338 int32_t totalSize = headerSize + breakDataLength; in ubrk_swap()
359 uint8_t *outBytes = (uint8_t *)outData + headerSize; in ubrk_swap()
Ducol_swp.cpp482 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in ucol_swap() local
507 inData=(const char *)inData+headerSize; in ucol_swap()
508 if(length>=0) { length-=headerSize; } in ucol_swap()
509 outData=(char *)outData+headerSize; in ucol_swap()
517 return headerSize+collationSize; in ucol_swap()
529 int32_t headerSize; in ucol_swapInverseUCA() local
539 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in ucol_swapInverseUCA()
562 inBytes=(const uint8_t *)inData+headerSize; in ucol_swapInverseUCA()
563 outBytes=(uint8_t *)outData+headerSize; in ucol_swapInverseUCA()
577 ((length-headerSize)<(8*4) || in ucol_swapInverseUCA()
[all …]
Ddictionarydata.cpp165 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()
Ducnvsel.cpp306 header.dataHeader.headerSize = (uint16_t)((sizeof(header) + 15) & ~15); in ucnvsel_serialize()
319 header.dataHeader.headerSize + in ucnvsel_serialize()
324 indexes[UCNVSEL_INDEX_SIZE] = totalSize - header.dataHeader.headerSize; in ucnvsel_serialize()
330 int32_t length = header.dataHeader.headerSize; in ucnvsel_serialize()
374 int32_t headerSize = udata_swapDataHeader(ds, inData, length, outData, status); in ucnvsel_swap() local
401 length -= headerSize; in ucnvsel_swap()
410 const uint8_t *inBytes = (const uint8_t *)inData + headerSize; in ucnvsel_swap()
411 uint8_t *outBytes = (uint8_t *)outData + headerSize; in ucnvsel_swap()
461 return headerSize + size; in ucnvsel_swap()
534 if (length < (pHeader->dataHeader.headerSize + 16 * 4)) { in ucnvsel_openFromSerialized()
[all …]
/external/icu/icu4c/source/i18n/
Dcollationdatawriter.cpp179 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/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResXMLTree.java103 if (dtohs(mHeader.header.headerSize) > mSize || mSize > size) { in setTo()
105 (int)dtohs(mHeader.header.headerSize), in setTo()
123 new ResChunk_header(mBuffer.buf, mHeader.header.headerSize); in setTo()
146 mNumResIds = (dtohl(chunk.size)-dtohs(chunk.headerSize))/SIZEOF_INT /*sizeof(int)*/; in setTo()
149 mResIds[i] = mBuffer.buf.getInt(chunk.myOffset() + chunk.headerSize + i * SIZEOF_INT); in setTo()
226 final short headerSize = dtohs(node.header.headerSize); in validateNode() local
230 … ResXMLTree_attrExt attrExt = new ResXMLTree_attrExt(mBuffer.buf, node.myOffset() + headerSize); in validateNode()
232 if ((size >= headerSize + SIZEOF_RESXMLTREE_ATTR_EXT /*sizeof(ResXMLTree_attrExt)*/) in validateNode()
236 if ((dtohs(attrExt.attributeStart)+attrSize) <= (size-headerSize)) { in validateNode()
241 (int)(size-headerSize)); in validateNode()
[all …]
DResourceTypes.java33 final short headerSize = dtohs(chunk.headerSize); in validate_chunk() local
36 if (headerSize >= minSize) { in validate_chunk()
37 if (headerSize <= size) { in validate_chunk()
38 if (((headerSize|size)&0x3) == 0) { in validate_chunk()
47 name, (int)size, (int)headerSize); in validate_chunk()
51 name, size, headerSize); in validate_chunk()
55 name, headerSize); in validate_chunk()
104 final short headerSize; field in ResourceTypes.ResChunk_header
116 this.headerSize = buf.getShort(offset + 2); in ResChunk_header()
123 ShortWriter headerSize = new ShortWriter(buf); in write() local
[all …]
/external/xz-java/src/org/tukaani/xz/
DBlockInputStream.java30 private final int headerSize; field in BlockInputStream
57 headerSize = 4 * ((buf[0] & 0xFF) + 1); in BlockInputStream()
58 inData.readFully(buf, 1, headerSize - 1); in BlockInputStream()
61 if (!DecoderUtil.isCRC32Valid(buf, 0, headerSize - 4, headerSize - 4)) in BlockInputStream()
77 buf, 2, headerSize - 6); in BlockInputStream()
83 - headerSize - check.getSize(); in BlockInputStream()
130 int headerAndCheckSize = headerSize + check.getSize(); in BlockInputStream()
299 return headerSize + inCounted.getSize() + check.getSize(); in getUnpaddedSize()
DBlockOutputStream.java24 private final int headerSize; field in BlockOutputStream
69 headerSize = buf.length + 4; in BlockOutputStream()
72 if (headerSize > EncoderUtil.BLOCK_HEADER_SIZE_MAX) in BlockOutputStream()
85 - headerSize - check.getSize(); in BlockOutputStream()
129 return headerSize + outCounted.getSize() + check.getSize(); in getUnpaddedSize()
/external/vulkan-validation-layers/layers/
Dshader_validation.h135 const auto headerSize = 2 * sizeof(uint32_t) + VK_UUID_SIZE; in Load() local
136 auto size = headerSize; in Load()
146 data = (uint32_t const *)(reinterpret_cast<uint8_t const *>(data) + headerSize); in Load()
154 …const auto headerSize = 2 * sizeof(uint32_t) + VK_UUID_SIZE; // 4 bytes for header size + 4 bytes… in Write() local
156 *pDataSize = headerSize + good_shader_hashes.size() * sizeof(uint32_t); in Write()
160 if (*pDataSize < headerSize) { in Write()
166 size_t actualSize = headerSize; in Write()
169 *out++ = headerSize; in Write()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/cpio/
DCpioArchiveEntry.java157 private final int headerSize; field in CpioArchiveEntry
208 this.headerSize = 110; in CpioArchiveEntry()
212 this.headerSize = 110; in CpioArchiveEntry()
216 this.headerSize = 76; in CpioArchiveEntry()
220 this.headerSize = 26; in CpioArchiveEntry()
455 return this.headerSize; in getHeaderSize()
510 int size = this.headerSize + 1; // Name has terminating null in getHeaderPadCount()
/external/fonttools/Lib/fontTools/ttLib/tables/
D_m_e_t_a.py34 headerSize = sstruct.calcsize(META_HEADER_FORMAT)
35 header = sstruct.unpack(META_HEADER_FORMAT, data[0 : headerSize])
41 dataMapOffset = headerSize + i * dataMapSize
53 headerSize = sstruct.calcsize(META_HEADER_FORMAT)
54 dataOffset = headerSize + len(keys) * sstruct.calcsize(DATA_MAP_FORMAT)
D_a_v_a_r.py58 headerSize = sstruct.calcsize(AVAR_HEADER_FORMAT)
59 header = sstruct.unpack(AVAR_HEADER_FORMAT, data[0:headerSize])
63 pos = headerSize
/external/icu/icu4c/source/tools/icuswap/
Dicuswap.cpp341 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/deqp-deps/glslang/glslang/Include/
DPoolAlloc.h101 return size + 2 * guardBlockSize + headerSize(); in allocationSize()
106 return m + guardBlockSize + headerSize(); in offsetAllocation()
113 unsigned char* preGuard() const { return mem + headerSize(); } in preGuard()
127 inline static size_t headerSize() { return sizeof(TAllocation); } in headerSize() function
129 inline static size_t headerSize() { return 0; } in headerSize() function
/external/swiftshader/src/OpenGL/compiler/
DPoolAlloc.h77 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/lzma/C/
DXzIn.c34 unsigned headerSize; in XzBlock_ReadHeader() local
37 headerSize = (unsigned)header[0]; in XzBlock_ReadHeader()
38 if (headerSize == 0) in XzBlock_ReadHeader()
46 headerSize = (headerSize << 2) + 4; in XzBlock_ReadHeader()
47 *headerSizeRes = headerSize; in XzBlock_ReadHeader()
48 RINOK(SeqInStream_Read(inStream, header + 1, headerSize - 1)); in XzBlock_ReadHeader()
/external/lzma/C/Util/Lzma/
DLzmaUtil.c154 size_t headerSize = LZMA_PROPS_SIZE; in Encode() local
157 res = LzmaEnc_WriteProperties(enc, header, &headerSize); in Encode()
159 header[headerSize++] = (Byte)(fileSize >> (8 * i)); in Encode()
160 if (outStream->Write(outStream, header, headerSize) != headerSize) in Encode()
/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 ........: %ld\n", headerSize); in test()
/external/lz4/examples/
DframeCompress.c71 { size_t const headerSize = LZ4F_compressBegin(ctx, outBuff, outCapacity, &kPrefs); in compress_file_internal() local
72 if (LZ4F_isError(headerSize)) { in compress_file_internal()
73 printf("Failed to start compression: error %zu\n", headerSize); in compress_file_internal()
76 count_out = headerSize; in compress_file_internal()
77 printf("Buffer size is %zu bytes, header size %zu bytes\n", outCapacity, headerSize); in compress_file_internal()
78 safe_fwrite(outBuff, 1, headerSize, f_out); in compress_file_internal()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/
DHeaderItem.java166 int headerSize; in makeAnnotator() local
178 headerSize = dexFile.readInt(out.getCursor()); in makeAnnotator()
179 out.annotate(4, "header_size: %d", headerSize); in makeAnnotator()
210 if (headerSize > ITEM_SIZE) { in makeAnnotator()
211 out.annotateTo(headerSize, "header padding"); in makeAnnotator()
/external/lzma/CPP/7zip/Archive/
DLzmaHandler.cpp360 const unsigned headerSize = GetHeaderSize(); in Open() local
365 if (processedSize < headerSize + 2) in Open()
369 const Byte *start = buf + headerSize; in Open()
375 SizeT srcLen = processedSize - headerSize; in Open()
525 const UInt32 headerSize = GetHeaderSize(); in Extract() local
527 RINOK(decoder.ReadInput(buf, headerSize, &processed)); in Extract()
528 if (processed != headerSize) in Extract()

123