Documentation ¶
Index ¶
- func IterateRaw(r io.Reader, buf []byte, cb func(k []byte, v int)) error
- type Trie
- func (t *Trie) Bytes() []byte
- func (t *Trie) Clone(m, d int) *Trie
- func (originalTrie *Trie) Diff(srcTrie *Trie) *Trie
- func (t *Trie) Insert(key []byte, value uint64, merge ...bool)
- func (t *Trie) IsEmpty() bool
- func (t *Trie) Iterate(cb func(name []byte, val uint64))
- func (dstTrie *Trie) Merge(srcTrieI merge.Merger)
- func (t *Trie) Serialize(w io.Writer) error
- func (t *Trie) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IterateRaw ¶ added in v0.0.40
IterateRaw iterates through the serialized trie and calls cb function for every leaf. k references bytes from buf, therefore it must not be modified or used outside of cb, a copy of k should be used instead.
Types ¶
Click to show internal directories.
Click to hide internal directories.