Lines Matching refs:bytes
406 uint32_t size; // Size of the data in bytes
415 uint32_t size; // Size of the data in bytes
424 uint32_t size; // Size of the data in bytes
429 uint8_t *address; // pointer to header bytes in memory
633 uint16_t overflowSize = 0; //size of node ID overflow storage in bytes
641 // calculate size of total node ID overflow storage in bytes
953 virtual void write(uint8_t *bytes, uint32_t &offset, const UVector32 &/*translate*/) {
960 *((uint16_t *)(bytes+offset)) = (fEqualOverflows? kEqualOverflows : 0) |
972 bytes, uint32_t &offset) {
974 *((uint16_t *)(bytes+offset)) = fValue;
997 virtual void write(uint8_t *bytes, uint32_t &offset, const UVector32 &translate) {
1000 BuildCompactTrieNode::write(bytes, offset, translate);
1001 BuildCompactTrieNode::writeValue(bytes, offset);
1044 virtual void write(uint8_t *bytes, uint32_t &offset, const UVector32 &translate) {
1056 BuildCompactTrieNode::write(bytes, offset, translate);
1060 CompactTrieHorizontalEntry *entry = (CompactTrieHorizontalEntry *)(bytes+offset);
1081 *((uint16_t *)(bytes+offset)) = leftmostBits;
1090 *((uint16_t *)(bytes+offset)) = (leftmostBits << (16 - 4 * remainder));
1095 BuildCompactTrieNode::writeValue(bytes, offset);
1144 virtual void write(uint8_t *bytes, uint32_t &offset, const UVector32 &translate) {
1145 CompactTrieVerticalNode *node = (CompactTrieVerticalNode *)(bytes+offset);
1147 BuildCompactTrieNode::write(bytes, offset, translate);
1161 *((uint16_t *)(bytes+offset)) = (translate.elementAti(fEqual->fNodeID) >> 16);
1165 BuildCompactTrieNode::writeValue(bytes, offset);
1560 fprintf(stderr, "%d nodes, %d unique, %d bytes\n", nodes.size(), nodeCount, totalSize);
1562 uint8_t *bytes = (uint8_t *)uprv_malloc(totalSize);
1563 if (bytes == NULL) {
1568 CompactTrieHeader *header = (CompactTrieHeader *)bytes;
1600 node->write(bytes, offset, translate);
1605 uprv_realloc(bytes, offset);
1655 fprintf(stderr, "Horizontal nodes: %d total, average %f bytes with %f items\n", hCount,
1657 fprintf(stderr, "Vertical nodes: %d total, average %f bytes with %f items\n", vCount,
1664 uprv_free(bytes);
1841 udata_printError(ds, "triedict_swap(): too few bytes (%d after ICU Data header) for trie data.\n",