trie_manager

package
v1.3.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareImmutable added in v0.9.7

func CompareImmutable(exp, real trie.Immutable, handler BytesDifferenceHandler) error

func CompareImmutableForObject added in v0.9.7

func CompareImmutableForObject(exp, real trie.ImmutableForObject, handler ObjectDifferenceHandler) error

func New

func New(database db.Database) trie.Manager

func NewImmutable

func NewImmutable(db db.Database, h []byte) trie.Immutable

func NewImmutableForObject

func NewImmutableForObject(db db.Database, h []byte, t reflect.Type) trie.ImmutableForObject

func NewMutable

func NewMutable(database db.Database, h []byte) trie.Mutable

func NewMutableForObject

func NewMutableForObject(db db.Database, h []byte, t reflect.Type) trie.MutableForObject

func NewMutableFromImmutable

func NewMutableFromImmutable(object trie.Immutable) trie.Mutable

func NewMutableFromImmutableForObject

func NewMutableFromImmutableForObject(object trie.ImmutableForObject) trie.MutableForObject

func SetCacheOfMutable added in v1.2.9

func SetCacheOfMutable(mutable trie.Mutable, cache *cache.NodeCache)

func SetCacheOfMutableForObject added in v1.2.9

func SetCacheOfMutableForObject(mutable trie.MutableForObject, cache *cache.NodeCache)

Types

type BytesDifferenceHandler added in v0.9.7

type BytesDifferenceHandler func(diff int, key, expect, real []byte)

type ObjectDifferenceHandler added in v0.9.7

type ObjectDifferenceHandler func(op int, key []byte, expect, real trie.Object)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL