MCPcopy
hub / github.com/openacid/slim / WalkFn

FuncType WalkFn

trie/slimtrie_scan.go:19–19  ·  view source on GitHub ↗

WalkFn is used when walking the slimtrie. Takes a key and value, returning false if iteration should be terminated. If withValue is false when calling NewIter(), value is always nil. Since 0.5.11

func(key []byte, value []byte) bool

Source from the content-addressed store, hash-verified

17//
18// Since 0.5.11
19type WalkFn func(key []byte, value []byte) bool
20
21// ScanFrom iterates key-values in the slimtrie and pass every key-value pair to
22// a callback function fn.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected