Versions in this module Expand all Collapse all v0 v0.0.24 Sep 11, 2021 v0.0.22 Jul 15, 2021 v0.0.21 Jul 14, 2021 v0.0.20 Jul 13, 2021 Changes in this version + const TNil + const TNode + const TNotLoaded + const TValue + func GetBBKey(BIdx byte, key [32]byte) (BBKey [32]byte) + func GetHash(e Entry) []byte + type BPT struct + DirtyMap map[int64]*Node + MaxHeight int + MaxNodeID int64 + Root *Node + func NewBPT() *BPT + func (b *BPT) Clean(node *Node) + func (b *BPT) Dirty(node *Node) + func (b *BPT) Equal(b2 *BPT) (equal bool) + func (b *BPT) GetDirtyList() (list []*Node) + func (b *BPT) Insert(key, hash [32]byte) + func (b *BPT) IsDirty(node *Node) bool + func (b *BPT) Marshal() (data []byte) + func (b *BPT) MarshalByteBlock(borderNode *Node) (data []byte) + func (b *BPT) MarshalEntry(entry Entry, data []byte) []byte + func (b *BPT) NewNode(parent *Node) (node *Node) + func (b *BPT) NewValue(key, hash [32]byte) (value *Value) + func (b *BPT) UnMarshal(data []byte) (newData []byte) + func (b *BPT) UnMarshalByteBlock(borderNode *Node, data []byte) []byte + func (b *BPT) UnMarshalEntry(parent *Node, data []byte) (Entry, []byte) + func (b *BPT) Update() + type Entry interface + Equal func(entry Entry) bool + GetHash func() []byte + Marshal func() []byte + T func() int + UnMarshal func(data []byte) []byte + type Manager struct + Bpt *BPT + DBManager *database.Manager + Dirty []*Node + LoadedBB map[[32]byte]*Node + func NewBPTManager(dbManager *database.Manager) *Manager + func (m *Manager) FlushNode(node *Node) + func (m *Manager) InsertKV(key, value [32]byte) + func (m *Manager) LoadNode(node *Node) + type Node struct + BBKey [32]byte + Hash [32]byte + Height int + ID int64 + Left Entry + Parent *Node + Right Entry + func (n *Node) Equal(entry Entry) (equal bool) + func (n *Node) GetHash() []byte + func (n *Node) GetID() int64 + func (n *Node) Marshal() (data []byte) + func (n *Node) T() int + func (n *Node) UnMarshal(data []byte) []byte + type NotLoaded struct + func (n *NotLoaded) Equal(entry Entry) bool + func (n *NotLoaded) GetHash() []byte + func (n *NotLoaded) Marshal() []byte + func (n *NotLoaded) T() int + func (n *NotLoaded) UnMarshal(data []byte) []byte + type Value struct + Hash [32]byte + Key [32]byte + func (v *Value) Equal(entry Entry) (equal bool) + func (v *Value) GetHash() []byte + func (v *Value) Marshal() []byte + func (v *Value) T() int + func (v *Value) UnMarshal(data []byte) []byte