Home
last modified time | relevance | path

Searched refs:arena_ (Results 1 – 2 of 2) sorted by relevance

/system/core/property_service/libpropertyinfoserializer/
Dtrie_serializer.cpp28 arena_->AllocateAndWriteUint32(strings.size()); in SerializeStrings()
31 uint32_t offset_array_offset = arena_->AllocateUint32Array(strings.size()); in SerializeStrings()
37 uint32_t string_offset = arena_->AllocateAndWriteString(*it); in SerializeStrings()
38 arena_->uint32_array(offset_array_offset)[i] = string_offset; in SerializeStrings()
50 auto serialized_property_entry = arena_->AllocateObject<PropertyEntry>(&offset); in WritePropertyEntry()
51 serialized_property_entry->name_offset = arena_->AllocateAndWriteString(property_entry.name); in WritePropertyEntry()
60 auto trie = arena_->AllocateObject<TrieNodeInternal>(&trie_offset); in WriteTrieNode()
72 uint32_t prefix_entries_array_offset = arena_->AllocateUint32Array(sorted_prefix_matches.size()); in WriteTrieNode()
77 arena_->uint32_array(prefix_entries_array_offset)[i] = property_entry_offset; in WriteTrieNode()
89 arena_->AllocateUint32Array(sorted_exact_matches.size()); in WriteTrieNode()
[all …]
Dtrie_serializer.h46 return reinterpret_cast<const PropertyInfoArea*>(arena_->data().data()); in serialized_info()
49 std::unique_ptr<TrieNodeArena> arena_; variable