Expand description
Reference-counted memory-based HashDB implementation.
Structs§
- HashKey
- Key function that only uses the hash
- Legacy
Prefixed Key Deprecated - Key function that concatenates prefix and hash. This is doing useless computation and should only be used for legacy purpose. It shall be remove in the future.
- MemCounter
MemTrackerimplementation for types which implementMallocSizeOf.- MemoryDB
- Reference-counted memory-based
HashDBimplementation. - Noop
Tracker - No-op
MemTrackerimplementation for when we want to construct aMemoryDBinstance that does not track memory usage. - Prefixed
Key - Key function that concatenates prefix and hash.
Traits§
- KeyFunction
- Maybe
Debug - MemTracker
- Used to implement incremental evaluation of
MallocSizeOffor a collection.
Functions§
- hash_
key - Make database key from hash only.
- legacy_
prefixed_ key Deprecated - Legacy method for db using previous version of prefix encoding. Only for trie radix 16 trie.
- prefixed_
key - Derive a database key from hash value of the node (key) and the node prefix.
Type Aliases§
- Default
MemTracker - The default memory tracker used by
MemoryDB.