Home
last modified time | relevance | path

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

1234

/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationDataReader.java99 static void read(CollationTailoring base, ByteBuffer inBytes, in read() argument
101 tailoring.version = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in read()
106 int inLength = inBytes.remaining(); in read()
110 int indexesLength = inBytes.getInt(); // inIndexes[IX_INDEXES_LENGTH] in read()
117 inIndexes[i] = inBytes.getInt(); in read()
123 ICUBinary.skipBytes(inBytes, (indexesLength - inIndexes.length) * 4); in read()
160 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3); in read()
176 ICUBinary.skipBytes(inBytes, length); in read()
191 inBytes.get(reorderTable); in read()
197 ICUBinary.skipBytes(inBytes, length); in read()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/
DCollationDataReader.java100 static void read(CollationTailoring base, ByteBuffer inBytes, in read() argument
102 tailoring.version = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in read()
107 int inLength = inBytes.remaining(); in read()
111 int indexesLength = inBytes.getInt(); // inIndexes[IX_INDEXES_LENGTH] in read()
118 inIndexes[i] = inBytes.getInt(); in read()
124 ICUBinary.skipBytes(inBytes, (indexesLength - inIndexes.length) * 4); in read()
161 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3); in read()
177 ICUBinary.skipBytes(inBytes, length); in read()
192 inBytes.get(reorderTable); in read()
198 ICUBinary.skipBytes(inBytes, length); in read()
[all …]
/third_party/icu/icu4c/source/common/
Ducol_swp.cpp93 const uint8_t *inBytes; in swapFormatVersion3() local
111 inBytes=(const uint8_t *)inData; in swapFormatVersion3()
155 if(inBytes!=outBytes) { in swapFormatVersion3()
156 uprv_memcpy(outBytes, inBytes, header.size); in swapFormatVersion3()
188 ds->swapArray32(ds, inBytes+header.options, header.expansion-header.options, in swapFormatVersion3()
201 ds->swapArray32(ds, inBytes+header.expansion, (int32_t)count, in swapFormatVersion3()
208 ds->swapArray16(ds, inBytes+header.contractionIndex, header.contractionSize*2, in swapFormatVersion3()
212 ds->swapArray32(ds, inBytes+header.contractionCEs, header.contractionSize*4, in swapFormatVersion3()
219 utrie_swap(ds, inBytes+header.mappingPosition, (int32_t)count, in swapFormatVersion3()
225 ds->swapArray32(ds, inBytes+header.endExpansionCE, header.endExpansionCECount*4, in swapFormatVersion3()
[all …]
Drbbidata.cpp346 const uint8_t *inBytes =(const uint8_t *)inData+headerSize; in ubrk_swap() local
347 RBBIDataHeader *rbbiDH = (RBBIDataHeader *)inBytes; in ubrk_swap()
392 if (inBytes != outBytes) { in ubrk_swap()
407 RBBIStateTable *rbbiST = (RBBIStateTable *)(inBytes+tableStartOffset); in ubrk_swap()
410 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
415 if (outBytes != inBytes) { in ubrk_swap()
417 inBytes+tableStartOffset+topSize, in ubrk_swap()
421 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
431 RBBIStateTable *rbbiST = (RBBIStateTable *)(inBytes+tableStartOffset); in ubrk_swap()
434 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
[all …]
Ducnv_bld.cpp1332 const uint8_t *inBytes; in ucnv_swap() local
1378 inBytes=(const uint8_t *)inData+headerSize; in ucnv_swap()
1382 inStaticData=(const UConverterStaticData *)inBytes; in ucnv_swap()
1418 inBytes+=staticDataSize; in ucnv_swap()
1427 inMBCSHeader=(const _MBCSHeader *)inBytes; in ucnv_swap()
1522 inExtIndexes=(const int32_t *)(inBytes+extOffset); in ucnv_swap()
1535 if(inBytes!=outBytes) { in ucnv_swap()
1536 uprv_memcpy(outBytes, inBytes, size); in ucnv_swap()
1551 const char *inBaseName=(const char *)inBytes+count; in ucnv_swap()
1561 ds->swapArray32(ds, inBytes+offset, (int32_t)count, in ucnv_swap()
[all …]
Ducnv_u8.cpp76 int32_t i, inBytes; in ucnv_toUnicode_UTF8() local
81 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8()
102 inBytes = U8_COUNT_BYTES_NON_ASCII(ch); /* lookup current sequence length */ in ucnv_toUnicode_UTF8()
106 while (i < inBytes) in ucnv_toUnicode_UTF8()
111 if (!icu::UTF8::isValidTrail(ch, static_cast<uint8_t>(ch2), i, inBytes) && in ucnv_toUnicode_UTF8()
124 cnv->mode = inBytes; in ucnv_toUnicode_UTF8()
131 if (i == inBytes && (!isCESU8 || i <= 3)) in ucnv_toUnicode_UTF8()
134 ch -= offsetsFromUTF8[inBytes]; in ucnv_toUnicode_UTF8()
194 int32_t i, inBytes; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local
199 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
[all …]
Ddictionarydata.cpp166 const uint8_t *inBytes; in udict_swap() local
186 inBytes = (const uint8_t *)inData + headerSize; in udict_swap()
189 inIndexes = (const int32_t *)inBytes; in udict_swap()
212 if (inBytes != outBytes) { in udict_swap()
213 uprv_memcpy(outBytes, inBytes, size); in udict_swap()
217 ds->swapArray32(ds, inBytes, sizeof(indexes), outBytes, pErrorCode); in udict_swap()
223 … ds->swapArray16(ds, inBytes + offset, nextOffset - offset, outBytes + offset, pErrorCode); in udict_swap()
/third_party/node/deps/icu-small/source/common/
Ducol_swp.cpp93 const uint8_t *inBytes; in swapFormatVersion3() local
111 inBytes=(const uint8_t *)inData; in swapFormatVersion3()
155 if(inBytes!=outBytes) { in swapFormatVersion3()
156 uprv_memcpy(outBytes, inBytes, header.size); in swapFormatVersion3()
188 ds->swapArray32(ds, inBytes+header.options, header.expansion-header.options, in swapFormatVersion3()
201 ds->swapArray32(ds, inBytes+header.expansion, (int32_t)count, in swapFormatVersion3()
208 ds->swapArray16(ds, inBytes+header.contractionIndex, header.contractionSize*2, in swapFormatVersion3()
212 ds->swapArray32(ds, inBytes+header.contractionCEs, header.contractionSize*4, in swapFormatVersion3()
219 utrie_swap(ds, inBytes+header.mappingPosition, (int32_t)count, in swapFormatVersion3()
225 ds->swapArray32(ds, inBytes+header.endExpansionCE, header.endExpansionCECount*4, in swapFormatVersion3()
[all …]
Drbbidata.cpp346 const uint8_t *inBytes =(const uint8_t *)inData+headerSize; in ubrk_swap() local
347 RBBIDataHeader *rbbiDH = (RBBIDataHeader *)inBytes; in ubrk_swap()
392 if (inBytes != outBytes) { in ubrk_swap()
407 RBBIStateTable *rbbiST = (RBBIStateTable *)(inBytes+tableStartOffset); in ubrk_swap()
410 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
415 if (outBytes != inBytes) { in ubrk_swap()
417 inBytes+tableStartOffset+topSize, in ubrk_swap()
421 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
431 RBBIStateTable *rbbiST = (RBBIStateTable *)(inBytes+tableStartOffset); in ubrk_swap()
434 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
[all …]
Ducnv_bld.cpp1332 const uint8_t *inBytes; in ucnv_swap() local
1378 inBytes=(const uint8_t *)inData+headerSize; in ucnv_swap()
1382 inStaticData=(const UConverterStaticData *)inBytes; in ucnv_swap()
1418 inBytes+=staticDataSize; in ucnv_swap()
1427 inMBCSHeader=(const _MBCSHeader *)inBytes; in ucnv_swap()
1522 inExtIndexes=(const int32_t *)(inBytes+extOffset); in ucnv_swap()
1535 if(inBytes!=outBytes) { in ucnv_swap()
1536 uprv_memcpy(outBytes, inBytes, size); in ucnv_swap()
1551 const char *inBaseName=(const char *)inBytes+count; in ucnv_swap()
1561 ds->swapArray32(ds, inBytes+offset, (int32_t)count, in ucnv_swap()
[all …]
Ducnv_u8.cpp76 int32_t i, inBytes; in ucnv_toUnicode_UTF8() local
81 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8()
102 inBytes = U8_COUNT_BYTES_NON_ASCII(ch); /* lookup current sequence length */ in ucnv_toUnicode_UTF8()
106 while (i < inBytes) in ucnv_toUnicode_UTF8()
111 if (!icu::UTF8::isValidTrail(ch, static_cast<uint8_t>(ch2), i, inBytes) && in ucnv_toUnicode_UTF8()
124 cnv->mode = inBytes; in ucnv_toUnicode_UTF8()
131 if (i == inBytes && (!isCESU8 || i <= 3)) in ucnv_toUnicode_UTF8()
134 ch -= offsetsFromUTF8[inBytes]; in ucnv_toUnicode_UTF8()
194 int32_t i, inBytes; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local
199 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
[all …]
Ddictionarydata.cpp166 const uint8_t *inBytes; in udict_swap() local
186 inBytes = (const uint8_t *)inData + headerSize; in udict_swap()
189 inIndexes = (const int32_t *)inBytes; in udict_swap()
212 if (inBytes != outBytes) { in udict_swap()
213 uprv_memcpy(outBytes, inBytes, size); in udict_swap()
217 ds->swapArray32(ds, inBytes, sizeof(indexes), outBytes, pErrorCode); in udict_swap()
223 … ds->swapArray16(ds, inBytes + offset, nextOffset - offset, outBytes + offset, pErrorCode); in udict_swap()
/third_party/skia/third_party/externals/icu/source/common/
Ducol_swp.cpp93 const uint8_t *inBytes; in swapFormatVersion3() local
111 inBytes=(const uint8_t *)inData; in swapFormatVersion3()
155 if(inBytes!=outBytes) { in swapFormatVersion3()
156 uprv_memcpy(outBytes, inBytes, header.size); in swapFormatVersion3()
188 ds->swapArray32(ds, inBytes+header.options, header.expansion-header.options, in swapFormatVersion3()
201 ds->swapArray32(ds, inBytes+header.expansion, (int32_t)count, in swapFormatVersion3()
208 ds->swapArray16(ds, inBytes+header.contractionIndex, header.contractionSize*2, in swapFormatVersion3()
212 ds->swapArray32(ds, inBytes+header.contractionCEs, header.contractionSize*4, in swapFormatVersion3()
219 utrie_swap(ds, inBytes+header.mappingPosition, (int32_t)count, in swapFormatVersion3()
225 ds->swapArray32(ds, inBytes+header.endExpansionCE, header.endExpansionCECount*4, in swapFormatVersion3()
[all …]
Drbbidata.cpp346 const uint8_t *inBytes =(const uint8_t *)inData+headerSize; in ubrk_swap() local
347 RBBIDataHeader *rbbiDH = (RBBIDataHeader *)inBytes; in ubrk_swap()
392 if (inBytes != outBytes) { in ubrk_swap()
407 RBBIStateTable *rbbiST = (RBBIStateTable *)(inBytes+tableStartOffset); in ubrk_swap()
410 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
415 if (outBytes != inBytes) { in ubrk_swap()
417 inBytes+tableStartOffset+topSize, in ubrk_swap()
421 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
431 RBBIStateTable *rbbiST = (RBBIStateTable *)(inBytes+tableStartOffset); in ubrk_swap()
434 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
[all …]
Ducnv_bld.cpp1332 const uint8_t *inBytes; in ucnv_swap() local
1378 inBytes=(const uint8_t *)inData+headerSize; in ucnv_swap()
1382 inStaticData=(const UConverterStaticData *)inBytes; in ucnv_swap()
1418 inBytes+=staticDataSize; in ucnv_swap()
1427 inMBCSHeader=(const _MBCSHeader *)inBytes; in ucnv_swap()
1522 inExtIndexes=(const int32_t *)(inBytes+extOffset); in ucnv_swap()
1535 if(inBytes!=outBytes) { in ucnv_swap()
1536 uprv_memcpy(outBytes, inBytes, size); in ucnv_swap()
1551 const char *inBaseName=(const char *)inBytes+count; in ucnv_swap()
1561 ds->swapArray32(ds, inBytes+offset, (int32_t)count, in ucnv_swap()
[all …]
Ducnv_u8.cpp76 int32_t i, inBytes; in ucnv_toUnicode_UTF8() local
81 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8()
102 inBytes = U8_COUNT_BYTES_NON_ASCII(ch); /* lookup current sequence length */ in ucnv_toUnicode_UTF8()
106 while (i < inBytes) in ucnv_toUnicode_UTF8()
111 if (!icu::UTF8::isValidTrail(ch, static_cast<uint8_t>(ch2), i, inBytes) && in ucnv_toUnicode_UTF8()
124 cnv->mode = inBytes; in ucnv_toUnicode_UTF8()
131 if (i == inBytes && (!isCESU8 || i <= 3)) in ucnv_toUnicode_UTF8()
134 ch -= offsetsFromUTF8[inBytes]; in ucnv_toUnicode_UTF8()
194 int32_t i, inBytes; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local
199 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
[all …]
Ddictionarydata.cpp166 const uint8_t *inBytes; in udict_swap() local
186 inBytes = (const uint8_t *)inData + headerSize; in udict_swap()
189 inIndexes = (const int32_t *)inBytes; in udict_swap()
212 if (inBytes != outBytes) { in udict_swap()
213 uprv_memcpy(outBytes, inBytes, size); in udict_swap()
217 ds->swapArray32(ds, inBytes, sizeof(indexes), outBytes, pErrorCode); in udict_swap()
223 … ds->swapArray16(ds, inBytes + offset, nextOffset - offset, outBytes + offset, pErrorCode); in udict_swap()
/third_party/icu/icu4c/source/tools/toolutil/
Dswapimpl.cpp106 const uint8_t *inBytes=static_cast<const uint8_t *>(inData)+headerSize; in upname_swap() local
120 const int32_t *inIndexes=reinterpret_cast<const int32_t *>(inBytes); in upname_swap()
135 ds->swapArray32(ds, inBytes, numBytesIndexesAndValueMaps, outBytes, pErrorCode); in upname_swap()
138 if(inBytes!=outBytes) { in upname_swap()
140 inBytes+numBytesIndexesAndValueMaps, in upname_swap()
317 const uint8_t *inBytes; in ucase_swap() local
351 inBytes=(const uint8_t *)inData+headerSize; in ucase_swap()
354 inIndexes=(const int32_t *)inBytes; in ucase_swap()
383 if(inBytes!=outBytes) { in ucase_swap()
384 uprv_memcpy(outBytes, inBytes, size); in ucase_swap()
[all …]
/third_party/node/deps/icu-small/source/tools/toolutil/
Dswapimpl.cpp106 const uint8_t *inBytes=static_cast<const uint8_t *>(inData)+headerSize; in upname_swap() local
120 const int32_t *inIndexes=reinterpret_cast<const int32_t *>(inBytes); in upname_swap()
135 ds->swapArray32(ds, inBytes, numBytesIndexesAndValueMaps, outBytes, pErrorCode); in upname_swap()
138 if(inBytes!=outBytes) { in upname_swap()
140 inBytes+numBytesIndexesAndValueMaps, in upname_swap()
317 const uint8_t *inBytes; in ucase_swap() local
351 inBytes=(const uint8_t *)inData+headerSize; in ucase_swap()
354 inIndexes=(const int32_t *)inBytes; in ucase_swap()
383 if(inBytes!=outBytes) { in ucase_swap()
384 uprv_memcpy(outBytes, inBytes, size); in ucase_swap()
[all …]
/third_party/skia/third_party/externals/icu/source/tools/toolutil/
Dswapimpl.cpp105 const uint8_t *inBytes=static_cast<const uint8_t *>(inData)+headerSize; in upname_swap() local
119 const int32_t *inIndexes=reinterpret_cast<const int32_t *>(inBytes); in upname_swap()
134 ds->swapArray32(ds, inBytes, numBytesIndexesAndValueMaps, outBytes, pErrorCode); in upname_swap()
137 if(inBytes!=outBytes) { in upname_swap()
139 inBytes+numBytesIndexesAndValueMaps, in upname_swap()
316 const uint8_t *inBytes; in ucase_swap() local
350 inBytes=(const uint8_t *)inData+headerSize; in ucase_swap()
353 inIndexes=(const int32_t *)inBytes; in ucase_swap()
382 if(inBytes!=outBytes) { in ucase_swap()
383 uprv_memcpy(outBytes, inBytes, size); in ucase_swap()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dcollationdatareader.cpp47 CollationDataReader::read(const CollationTailoring *base, const uint8_t *inBytes, int32_t inLength, in read() argument
51 if(inBytes == NULL || (0 <= inLength && inLength < 24)) { in read()
55 const DataHeader *header = reinterpret_cast<const DataHeader *>(inBytes); in read()
66 inBytes += headerLength; in read()
72 if(inBytes == NULL || (0 <= inLength && inLength < 8)) { in read()
76 const int32_t *inIndexes = reinterpret_cast<const int32_t *>(inBytes); in read()
120 reorderCodes = reinterpret_cast<const int32_t *>(inBytes + offset); in read()
150 reorderTable = inBytes + offset; in read()
171 UTRIE2_32_VALUE_BITS, inBytes + offset, length, NULL, in read()
190 data->ces = reinterpret_cast<const int64_t *>(inBytes + offset); in read()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dcollationdatareader.cpp47 CollationDataReader::read(const CollationTailoring *base, const uint8_t *inBytes, int32_t inLength, in read() argument
51 if(inBytes == nullptr || (0 <= inLength && inLength < 24)) { in read()
55 const DataHeader *header = reinterpret_cast<const DataHeader *>(inBytes); in read()
66 inBytes += headerLength; in read()
72 if(inBytes == nullptr || (0 <= inLength && inLength < 8)) { in read()
76 const int32_t *inIndexes = reinterpret_cast<const int32_t *>(inBytes); in read()
120 reorderCodes = reinterpret_cast<const int32_t *>(inBytes + offset); in read()
150 reorderTable = inBytes + offset; in read()
171 UTRIE2_32_VALUE_BITS, inBytes + offset, length, nullptr, in read()
190 data->ces = reinterpret_cast<const int64_t *>(inBytes + offset); in read()
[all …]
/third_party/icu/icu4c/source/i18n/
Dcollationdatareader.cpp47 CollationDataReader::read(const CollationTailoring *base, const uint8_t *inBytes, int32_t inLength, in read() argument
51 if(inBytes == NULL || (0 <= inLength && inLength < 24)) { in read()
55 const DataHeader *header = reinterpret_cast<const DataHeader *>(inBytes); in read()
66 inBytes += headerLength; in read()
72 if(inBytes == NULL || (0 <= inLength && inLength < 8)) { in read()
76 const int32_t *inIndexes = reinterpret_cast<const int32_t *>(inBytes); in read()
120 reorderCodes = reinterpret_cast<const int32_t *>(inBytes + offset); in read()
150 reorderTable = inBytes + offset; in read()
171 UTRIE2_32_VALUE_BITS, inBytes + offset, length, NULL, in read()
190 data->ces = reinterpret_cast<const int64_t *>(inBytes + offset); in read()
[all …]
/third_party/icu/icu4c/source/tools/icuswap/
Dicuswap.cpp343 const uint8_t *inBytes; in udata_swapPackage() local
409 inBytes=(const uint8_t *)inData+headerSize; in udata_swapPackage()
410 inEntries=(const UDataOffsetTOCEntry *)(inBytes+4); in udata_swapPackage()
414 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); in udata_swapPackage()
422 itemLength=udata_swap(ds, inBytes+offset, -1, NULL, pErrorCode); in udata_swapPackage()
437 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); in udata_swapPackage()
458 ds->swapArray32(ds, inBytes, 4, outBytes, pErrorCode); in udata_swapPackage()
468 udata_swapInvStringBlock(ds, inBytes+offset, itemLength, outBytes+offset, pErrorCode); in udata_swapPackage()
492 entryName=(char *)inBytes+ds->readUInt32(inEntries[i].nameOffset); in udata_swapPackage()
529 uprv_memcpy(outBytes, inBytes, 4); in udata_swapPackage()
[all …]
/third_party/skia/third_party/externals/icu/source/tools/icuswap/
Dicuswap.cpp343 const uint8_t *inBytes; in udata_swapPackage() local
409 inBytes=(const uint8_t *)inData+headerSize; in udata_swapPackage()
410 inEntries=(const UDataOffsetTOCEntry *)(inBytes+4); in udata_swapPackage()
414 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); in udata_swapPackage()
422 itemLength=udata_swap(ds, inBytes+offset, -1, NULL, pErrorCode); in udata_swapPackage()
437 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); in udata_swapPackage()
458 ds->swapArray32(ds, inBytes, 4, outBytes, pErrorCode); in udata_swapPackage()
468 udata_swapInvStringBlock(ds, inBytes+offset, itemLength, outBytes+offset, pErrorCode); in udata_swapPackage()
492 entryName=(char *)inBytes+ds->readUInt32(inEntries[i].nameOffset); in udata_swapPackage()
529 uprv_memcpy(outBytes, inBytes, 4); in udata_swapPackage()
[all …]

1234