Lines Matching refs:totalSize

224     int32_t totalSize = indexesLength * 4;  in write()  local
232 indexes[CollationDataReader::IX_REORDER_CODES_OFFSET] = totalSize; in write()
233 totalSize += reorderCodesLength * 4; in write()
235 indexes[CollationDataReader::IX_REORDER_TABLE_OFFSET] = totalSize; in write()
237 totalSize += 256; in write()
240 indexes[CollationDataReader::IX_TRIE_OFFSET] = totalSize; in write()
244 if(totalSize < capacity) { in write()
245 length = utrie2_serialize(data.trie, dest + totalSize, in write()
246 capacity - totalSize, &errorCode2); in write()
257 totalSize += length; in write()
260 indexes[CollationDataReader::IX_RESERVED8_OFFSET] = totalSize; in write()
261 indexes[CollationDataReader::IX_CES_OFFSET] = totalSize; in write()
263 U_ASSERT(((headerSize + totalSize) & 7) == 0); in write()
264 totalSize += data.cesLength * 8; in write()
267 indexes[CollationDataReader::IX_RESERVED10_OFFSET] = totalSize; in write()
268 indexes[CollationDataReader::IX_CE32S_OFFSET] = totalSize; in write()
270 totalSize += data.ce32sLength * 4; in write()
273 indexes[CollationDataReader::IX_ROOT_ELEMENTS_OFFSET] = totalSize; in write()
274 totalSize += rootElementsLength * 4; in write()
276 indexes[CollationDataReader::IX_CONTEXTS_OFFSET] = totalSize; in write()
278 totalSize += data.contextsLength * 2; in write()
281 indexes[CollationDataReader::IX_UNSAFE_BWD_OFFSET] = totalSize; in write()
285 if(totalSize < capacity) { in write()
286 uint16_t *p = reinterpret_cast<uint16_t *>(dest + totalSize); in write()
288 p, (capacity - totalSize) / 2, errorCode2); in write()
296 totalSize += length * 2; in write()
299 indexes[CollationDataReader::IX_FAST_LATIN_TABLE_OFFSET] = totalSize; in write()
300 totalSize += fastLatinTableLength * 2; in write()
303 indexes[CollationDataReader::IX_SCRIPTS_OFFSET] = totalSize; in write()
308 totalSize += scripts.length() * 2; in write()
311 indexes[CollationDataReader::IX_COMPRESSIBLE_BYTES_OFFSET] = totalSize; in write()
313 totalSize += 256; in write()
316 indexes[CollationDataReader::IX_RESERVED18_OFFSET] = totalSize; in write()
317 indexes[CollationDataReader::IX_TOTAL_SIZE] = totalSize; in write()
319 if(totalSize > capacity) { in write()
321 return headerSize + totalSize; in write()
337 return headerSize + totalSize; in write()