Home
last modified time | relevance | path

Searched refs:inBytes (Results 1 – 25 of 30) sorted by relevance

12

/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationDataReader.java97 static void read(CollationTailoring base, ByteBuffer inBytes, in read() argument
99 tailoring.version = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in read()
104 int inLength = inBytes.remaining(); in read()
108 int indexesLength = inBytes.getInt(); // inIndexes[IX_INDEXES_LENGTH] in read()
115 inIndexes[i] = inBytes.getInt(); in read()
121 ICUBinary.skipBytes(inBytes, (indexesLength - inIndexes.length) * 4); in read()
160 reorderCodes[i] = inBytes.getInt(); in read()
179 ICUBinary.skipBytes(inBytes, length); in read()
193 inBytes.get(reorderTable); in read()
199 ICUBinary.skipBytes(inBytes, length); in read()
[all …]
DCollationLoader.java200 ByteBuffer inBytes = binary.getBinary(); in loadTailoring() local
202 CollationDataReader.read(root, inBytes, t); in loadTailoring()
/external/icu/icu4c/source/tools/toolutil/
Dswapimpl.cpp101 const uint8_t *inBytes=static_cast<const uint8_t *>(inData)+headerSize; in upname_swap() local
115 const int32_t *inIndexes=reinterpret_cast<const int32_t *>(inBytes); in upname_swap()
130 ds->swapArray32(ds, inBytes, numBytesIndexesAndValueMaps, outBytes, pErrorCode); in upname_swap()
133 if(inBytes!=outBytes) { in upname_swap()
135 inBytes+numBytesIndexesAndValueMaps, in upname_swap()
312 const uint8_t *inBytes; in ucase_swap() local
346 inBytes=(const uint8_t *)inData+headerSize; in ucase_swap()
349 inIndexes=(const int32_t *)inBytes; in ucase_swap()
378 if(inBytes!=outBytes) { in ucase_swap()
379 uprv_memcpy(outBytes, inBytes, size); in ucase_swap()
[all …]
Dpkgitems.cpp367 const uint8_t *inBytes, int32_t length, in ures_enumDependencies() argument
373 res_read(&resData, pInfo, inBytes, length, pErrorCode); in ures_enumDependencies()
443 const uint8_t *inBytes, int32_t length, in ucnv_enumDependencies() argument
464 inStaticData=(const UConverterStaticData *)inBytes; in ucnv_enumDependencies()
475 inBytes+=staticDataSize; in ucnv_enumDependencies()
484 inMBCSHeader=(const _MBCSHeader *)inBytes; in ucnv_enumDependencies()
527 const char *inBaseName=(const char *)inBytes+mbcsHeaderLength*4; in ucnv_enumDependencies()
613 const uint8_t *inBytes=pItem->data+itemHeaderLength; in enumDependencies() local
616 … ucnv_enumDependencies(ds, pItem->name, pInfo, inBytes, length, check, context, &errorCode); in enumDependencies()
Dpackage.cpp450 const uint8_t *inBytes; in readPackage() local
507 inBytes=(const uint8_t *)inData+headerLength; in readPackage()
508 inEntries=(const UDataOffsetTOCEntry *)(inBytes+4); in readPackage()
516 itemCount=udata_readInt32(ds, *(const int32_t *)inBytes); in readPackage()
554 while(itemLength>0 && inBytes[stringsOffset+itemLength-1]!=0) { in readPackage()
564 ds->swapInvChars(ds, inBytes+stringsOffset, itemLength, inItemStrings, &errorCode); in readPackage()
647 items[i].data=(uint8_t *)inBytes+ds->readUInt32(inEntries[i].dataOffset); in readPackage()
/external/icu/icu4c/source/common/
Ducol_swp.cpp166 const uint8_t *inBytes; in swapFormatVersion3() local
184 inBytes=(const uint8_t *)inData; in swapFormatVersion3()
228 if(inBytes!=outBytes) { in swapFormatVersion3()
229 uprv_memcpy(outBytes, inBytes, header.size); in swapFormatVersion3()
261 ds->swapArray32(ds, inBytes+header.options, header.expansion-header.options, in swapFormatVersion3()
274 ds->swapArray32(ds, inBytes+header.expansion, (int32_t)count, in swapFormatVersion3()
281 ds->swapArray16(ds, inBytes+header.contractionIndex, header.contractionSize*2, in swapFormatVersion3()
285 ds->swapArray32(ds, inBytes+header.contractionCEs, header.contractionSize*4, in swapFormatVersion3()
292 utrie_swap(ds, inBytes+header.mappingPosition, (int32_t)count, in swapFormatVersion3()
298 ds->swapArray32(ds, inBytes+header.endExpansionCE, header.endExpansionCECount*4, in swapFormatVersion3()
[all …]
Drbbidata.cpp350 const uint8_t *inBytes =(const uint8_t *)inData+headerSize; in ubrk_swap() local
351 RBBIDataHeader *rbbiDH = (RBBIDataHeader *)inBytes; in ubrk_swap()
397 if (inBytes != outBytes) { in ubrk_swap()
412 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
414 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
423 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
425 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
434 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
436 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
445 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
[all …]
Ducnv_bld.cpp1379 const uint8_t *inBytes; in ucnv_swap() local
1425 inBytes=(const uint8_t *)inData+headerSize; in ucnv_swap()
1429 inStaticData=(const UConverterStaticData *)inBytes; in ucnv_swap()
1465 inBytes+=staticDataSize; in ucnv_swap()
1474 inMBCSHeader=(const _MBCSHeader *)inBytes; in ucnv_swap()
1569 inExtIndexes=(const int32_t *)(inBytes+extOffset); in ucnv_swap()
1582 if(inBytes!=outBytes) { in ucnv_swap()
1583 uprv_memcpy(outBytes, inBytes, size); in ucnv_swap()
1598 const char *inBaseName=(const char *)inBytes+count; in ucnv_swap()
1608 ds->swapArray32(ds, inBytes+offset, (int32_t)count, in ucnv_swap()
[all …]
Ddictionarydata.cpp164 const uint8_t *inBytes; in udict_swap() local
184 inBytes = (const uint8_t *)inData + headerSize; in udict_swap()
187 inIndexes = (const int32_t *)inBytes; in udict_swap()
210 if (inBytes != outBytes) { in udict_swap()
211 uprv_memcpy(outBytes, inBytes, size); in udict_swap()
215 ds->swapArray32(ds, inBytes, sizeof(indexes), outBytes, pErrorCode); in udict_swap()
221 … ds->swapArray16(ds, inBytes + offset, nextOffset - offset, outBytes + offset, pErrorCode); in udict_swap()
Ducnv_u8.c110 int32_t i, inBytes; in ucnv_toUnicode_UTF8() local
115 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8()
136 inBytes = bytesFromUTF8[ch]; /* lookup current sequence length */ in ucnv_toUnicode_UTF8()
140 while (i < inBytes) in ucnv_toUnicode_UTF8()
157 cnv->mode = inBytes; in ucnv_toUnicode_UTF8()
164 ch -= offsetsFromUTF8[inBytes]; in ucnv_toUnicode_UTF8()
178 if (i == inBytes && ch <= MAXIMUM_UTF && ch >= utf8_minChar32[i] && in ucnv_toUnicode_UTF8()
240 int32_t i, inBytes; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local
245 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
265 inBytes = bytesFromUTF8[ch]; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
[all …]
Dunames.cpp1833 const uint8_t *inBytes; in uchar_swapNames() local
1865 inBytes=(const uint8_t *)inData+headerSize; in uchar_swapNames()
1868 algNamesOffset=ds->readUInt32(((const uint32_t *)inBytes)[3]); in uchar_swapNames()
1872 (uint32_t)length<(algNamesOffset=ds->readUInt32(((const uint32_t *)inBytes)[3])) in uchar_swapNames()
1884 count=ds->readUInt32(*((const uint32_t *)(inBytes+offset))); in uchar_swapNames()
1888 inRange=(const AlgorithmicRange *)(inBytes+offset); in uchar_swapNames()
1902 if(inBytes!=outBytes) { in uchar_swapNames()
1903 uprv_memcpy(outBytes, inBytes, length); in uchar_swapNames()
1907 tokenStringOffset=ds->readUInt32(((const uint32_t *)inBytes)[0]); in uchar_swapNames()
1908 groupsOffset=ds->readUInt32(((const uint32_t *)inBytes)[1]); in uchar_swapNames()
[all …]
Dloadednormalizer2impl.cpp82 const uint8_t *inBytes=(const uint8_t *)udata_getMemory(memory); in load() local
83 const int32_t *inIndexes=(const int32_t *)inBytes; in load()
93 inBytes+offset, nextOffset-offset, NULL, in load()
101 const uint16_t *inExtraData=(const uint16_t *)(inBytes+offset); in load()
105 const uint8_t *inSmallFCD=inBytes+offset; in load()
Ducnvsel.cpp407 const uint8_t *inBytes = (const uint8_t *)inData + headerSize; in ucnvsel_swap() local
411 const int32_t *inIndexes = (const int32_t *)inBytes; in ucnvsel_swap()
429 if(inBytes != outBytes) { in ucnvsel_swap()
430 uprv_memcpy(outBytes, inBytes, size); in ucnvsel_swap()
437 ds->swapArray32(ds, inBytes, count, outBytes, status); in ucnvsel_swap()
442 utrie2_swap(ds, inBytes + offset, count, outBytes + offset, status); in ucnvsel_swap()
447 ds->swapArray32(ds, inBytes + offset, count, outBytes + offset, status); in ucnvsel_swap()
452 ds->swapInvChars(ds, inBytes + offset, count, outBytes + offset, status); in ucnvsel_swap()
Dusprep.cpp781 const uint8_t *inBytes; in usprep_swap() local
812 inBytes=(const uint8_t *)inData+headerSize; in usprep_swap()
815 inIndexes=(const int32_t *)inBytes; in usprep_swap()
847 if(inBytes!=outBytes) { in usprep_swap()
848 uprv_memcpy(outBytes, inBytes, size); in usprep_swap()
855 ds->swapArray32(ds, inBytes, count, outBytes, pErrorCode); in usprep_swap()
860 utrie_swap(ds, inBytes+offset, count, outBytes+offset, pErrorCode); in usprep_swap()
865 ds->swapArray16(ds, inBytes+offset, count, outBytes+offset, pErrorCode); in usprep_swap()
Dnormalizer2impl.cpp2014 const uint8_t *inBytes; in unorm2_swap() local
2045 inBytes=(const uint8_t *)inData+headerSize; in unorm2_swap()
2048 inIndexes=(const int32_t *)inBytes; in unorm2_swap()
2077 if(inBytes!=outBytes) { in unorm2_swap()
2078 uprv_memcpy(outBytes, inBytes, size); in unorm2_swap()
2085 ds->swapArray32(ds, inBytes, nextOffset-offset, outBytes, pErrorCode); in unorm2_swap()
2090 utrie2_swap(ds, inBytes+offset, nextOffset-offset, outBytes+offset, pErrorCode); in unorm2_swap()
2095 ds->swapArray16(ds, inBytes+offset, nextOffset-offset, outBytes+offset, pErrorCode); in unorm2_swap()
Duresdata.h331 const UDataInfo *pInfo, const void *inBytes, int32_t length,
Duresdata.c155 UVersionInfo formatVersion, const void *inBytes, int32_t length, in res_init() argument
160 pResData->pRoot=(const int32_t *)inBytes; in res_init()
230 const UDataInfo *pInfo, const void *inBytes, int32_t length, in res_read() argument
242 res_init(pResData, formatVersion, inBytes, length, errorCode); in res_read()
/external/icu/icu4c/source/i18n/
Dcollationdatareader.cpp44 CollationDataReader::read(const CollationTailoring *base, const uint8_t *inBytes, int32_t inLength, in read() argument
48 if(inBytes == NULL || (0 <= inLength && inLength < 24)) { in read()
52 const DataHeader *header = reinterpret_cast<const DataHeader *>(inBytes); in read()
63 inBytes += headerLength; in read()
69 if(inBytes == NULL || (0 <= inLength && inLength < 8)) { in read()
73 const int32_t *inIndexes = reinterpret_cast<const int32_t *>(inBytes); in read()
117 reorderCodes = reinterpret_cast<const int32_t *>(inBytes + offset); in read()
147 reorderTable = inBytes + offset; in read()
168 UTRIE2_32_VALUE_BITS, inBytes + offset, length, NULL, in read()
187 data->ces = reinterpret_cast<const int64_t *>(inBytes + offset); in read()
[all …]
Duspoof_impl.cpp767 const uint8_t *inBytes =(const uint8_t *)inData+headerSize; in uspoof_swap() local
768 SpoofDataHeader *spoofDH = (SpoofDataHeader *)inBytes; in uspoof_swap()
813 if (inBytes != outBytes) { in uspoof_swap()
820 ds->swapArray32(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap()
825 ds->swapArray16(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap()
830 ds->swapArray16(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap()
835 ds->swapArray16(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap()
840 utrie2_swap(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap()
845 utrie2_swap(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap()
850 ds->swapArray32(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap()
Dcollationroot.cpp60 const uint8_t *inBytes = static_cast<const uint8_t *>(udata_getMemory(t->memory)); in load() local
61 CollationDataReader::read(NULL, inBytes, udata_getLength(t->memory), *t, errorCode); in load()
Dcollationdatareader.h100 static void read(const CollationTailoring *base, const uint8_t *inBytes, int32_t inLength,
/external/icu/icu4c/source/tools/icuswap/
Dicuswap.cpp341 const uint8_t *inBytes; in udata_swapPackage() local
407 inBytes=(const uint8_t *)inData+headerSize; in udata_swapPackage()
408 inEntries=(const UDataOffsetTOCEntry *)(inBytes+4); in udata_swapPackage()
412 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); in udata_swapPackage()
420 itemLength=udata_swap(ds, inBytes+offset, -1, NULL, pErrorCode); in udata_swapPackage()
435 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); in udata_swapPackage()
456 ds->swapArray32(ds, inBytes, 4, outBytes, pErrorCode); in udata_swapPackage()
466 udata_swapInvStringBlock(ds, inBytes+offset, itemLength, outBytes+offset, pErrorCode); in udata_swapPackage()
490 entryName=(char *)inBytes+ds->readUInt32(inEntries[i].nameOffset); in udata_swapPackage()
527 uprv_memcpy(outBytes, inBytes, 4); in udata_swapPackage()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUResourceBundleReader.java332 ByteBuffer inBytes; in createInstance() local
335 inBytes = ICUBinary.getData(data.loader, fullName, itemPath); in createInstance()
336 if (inBytes == null) { in createInstance()
345 inBytes = ICUBinary.getByteBufferFromInputStreamAndCloseStream(stream); in createInstance()
347 … return new ICUResourceBundleReader(inBytes, data.baseName, data.localeID, data.loader); in createInstance()
360 private ICUResourceBundleReader(ByteBuffer inBytes, in ICUResourceBundleReader() argument
363 init(inBytes); in ICUResourceBundleReader()
388 private void init(ByteBuffer inBytes) throws IOException { in init() argument
389 dataVersion = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in init()
390 boolean isFormatVersion10 = inBytes.get(16) == 1 && inBytes.get(17) == 0; in init()
[all …]
/external/llvm/lib/IR/
DDataLayout.cpp212 static unsigned inBytes(unsigned Bits) { in inBytes() function
257 unsigned PointerMemSize = inBytes(getInt(Tok)); in parseSpecifier()
266 unsigned PointerABIAlign = inBytes(getInt(Tok)); in parseSpecifier()
275 PointerPrefAlign = inBytes(getInt(Tok)); in parseSpecifier()
310 unsigned ABIAlign = inBytes(getInt(Tok)); in parseSpecifier()
319 PrefAlign = inBytes(getInt(Tok)); in parseSpecifier()
339 StackNaturalAlign = inBytes(getInt(Tok)); in parseSpecifier()
/external/libpcap/msdos/
Dpktdrvr.h76 DWORD inBytes; /* # of bytes received */ member

12