transporttrie

package
v0.0.0-...-e488709 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trie

type Trie struct {
	I byte // debugging

	Multiplier int
	Divider    int
	// contains filtered or unexported fields
}

func Deserialize

func Deserialize(r io.Reader) (*Trie, error)

func FromBytes

func FromBytes(p []byte) *Trie

func New

func New() *Trie

New returns a new initialized empty Trie.

func (*Trie) Bytes

func (t *Trie) Bytes() []byte

func (*Trie) Clone

func (t *Trie) Clone(m, d int) *Trie

func (*Trie) Insert

func (t *Trie) Insert(key []byte, value uint64, merge ...bool)

func (*Trie) Iterate

func (t *Trie) Iterate(cb func(name []byte, val uint64))

func (*Trie) Merge

func (dstTrie *Trie) Merge(srcTrieI merge.Merger)

func (*Trie) Serialize

func (t *Trie) Serialize(w io.Writer) error

func (*Trie) String

func (t *Trie) String() string

Jump to

Keyboard shortcuts

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