Documentation ¶
Index ¶
- func BeginsWith(a, b []byte) bool
- func CompactDecode(str string) []byte
- func CompactEncode(hexSlice []byte) string
- func CompactHexDecode(str string) []byte
- func CompareIntSlice(a, b []int) bool
- func DecodeCompact(key []byte) string
- func HasTerm(s []byte) bool
- func MatchingNibbleLength(a, b []byte) int
- func RemTerm(s []byte) []byte
- type Backend
- type Cache
- type FullNode
- func (self *FullNode) Branches() []Node
- func (self *FullNode) Copy(t *Trie) Node
- func (self *FullNode) Dirty() bool
- func (self *FullNode) Hash() interface{}
- func (self *FullNode) Len() (amount int)
- func (self *FullNode) RlpData() interface{}
- func (self *FullNode) String() string
- func (self *FullNode) Value() Node
- type HashNode
- type Iterator
- type Node
- type ShortNode
- type Trie
- func (self *Trie) Commit()
- func (self *Trie) Copy() *Trie
- func (self *Trie) Delete(key []byte) Node
- func (self *Trie) DeleteString(key string) Node
- func (self *Trie) Get(key []byte) []byte
- func (self *Trie) GetString(key string) []byte
- func (self *Trie) Hash() []byte
- func (self *Trie) Iterator() *Iterator
- func (self *Trie) PrintRoot()
- func (self *Trie) Reset()
- func (self *Trie) Root() []byte
- func (self *Trie) Update(key, value []byte) Node
- func (self *Trie) UpdateString(key, value string) Node
- type ValueNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginsWith ¶
func CompactDecode ¶
func CompactEncode ¶
func CompactHexDecode ¶
func DecodeCompact ¶
func MatchingNibbleLength ¶
Returns the amount of nibbles that match each other from 0 ...
Types ¶
type FullNode ¶
type FullNode struct {
// contains filtered or unexported fields
}
func NewFullNode ¶
type Iterator ¶
func NewIterator ¶
type Trie ¶
type Trie struct {
// contains filtered or unexported fields
}
func (*Trie) DeleteString ¶
func (*Trie) Reset ¶
func (self *Trie) Reset()
Reset should only be called if the trie has been hashed
func (*Trie) UpdateString ¶
Click to show internal directories.
Click to hide internal directories.