Home
last modified time | relevance | path

Searched refs:EntryMetadata (Results 1 – 5 of 5) sorted by relevance

/external/pigweed/pw_kvs/public/pw_kvs/
Dkey_value_store.h361 using EntryMetadata = internal::EntryMetadata;
382 StatusWithSize ValueSize(const EntryMetadata& metadata) const;
384 Status ReadEntry(const EntryMetadata& metadata, Entry& entry) const;
398 Status FindEntry(Key key, EntryMetadata* metadata) const;
406 Status FindExisting(Key key, EntryMetadata* metadata) const;
409 const EntryMetadata& metadata,
416 const EntryMetadata& descriptor,
423 Status WriteEntryForExistingKey(EntryMetadata& metadata,
433 EntryMetadata* prior_metadata = nullptr,
436 EntryMetadata CreateOrUpdateKeyDescriptor(const Entry& new_entry,
[all …]
/external/pigweed/pw_kvs/public/pw_kvs/internal/
Dentry_cache.h34 class EntryMetadata {
38 EntryMetadata() = default;
75 constexpr EntryMetadata(KeyDescriptor& descriptor, in EntryMetadata() function
94 std::conditional_t<kIsConst, const EntryMetadata, EntryMetadata>;
132 mutable EntryMetadata metadata_;
173 EntryMetadata* metadata) const;
177 EntryMetadata AddNew(const KeyDescriptor& entry, Address address) const;
/external/pigweed/pw_kvs/
Dentry_cache_test.cc49 EntryMetadata metadata = entries_.AddNew(kDescriptor, 5); in TEST_F()
59 EntryMetadata metadata = entries_.AddNew(kDescriptor, 100); in TEST_F()
70 EntryMetadata metadata = entries_.AddNew(kDescriptor, 100); in TEST_F()
91 for (const EntryMetadata& entry : entries_) { in TEST_F()
120 for (const EntryMetadata& entry : entries_) { in TEST_F()
141 for (const EntryMetadata& entry : entries_) { in TEST_F()
160 for (const EntryMetadata& entry : entries_) { in TEST_F()
317 EntryMetadata metadata; in TEST_F()
334 EntryMetadata metadata; in TEST_F()
349 EntryMetadata metadata; in TEST_F()
[all …]
Dkey_value_store.cc232 for (EntryMetadata& metadata : entry_cache_) { in InitializeMetadata()
342 for (const EntryMetadata& metadata : entry_cache_) { in CheckForErrors()
408 EntryMetadata metadata; in Get()
427 EntryMetadata metadata; in PutBytes()
449 EntryMetadata metadata; in Delete()
490 EntryMetadata metadata; in ValueSize()
496 Status KeyValueStore::ReadEntry(const EntryMetadata& metadata, in ReadEntry()
515 Status KeyValueStore::FindEntry(Key key, EntryMetadata* found_entry) const { in FindEntry()
525 Status KeyValueStore::FindExisting(Key key, EntryMetadata* metadata) const { in FindExisting()
538 const EntryMetadata& metadata, in Get()
[all …]
Dentry_cache.cc35 void EntryMetadata::RemoveAddress(Address address_to_remove) { in RemoveAddress()
52 void EntryMetadata::Reset(const KeyDescriptor& descriptor, Address address) { in Reset()
66 EntryMetadata* metadata) const { in Find()
109 *metadata = EntryMetadata(descriptors_[i], addresses(i)); in Find()
120 EntryMetadata EntryCache::AddNew(const KeyDescriptor& descriptor, in AddNew()
125 return EntryMetadata(descriptors_.back(), std::span(first_address, 1)); in AddNew()