Documentation
¶
Index ¶
- Variables
- func DecodeValueOnly(buf []byte) ([]byte, error)
- type Node
- func (node *Node) CheckValid()
- func (node *Node) DeepCopy(nodepool Pool) *Node
- func (node *Node) Dirty() bool
- func (node *Node) Encode() ([]byte, error)
- func (node *Node) EncodeWithBuffer(buf *bytes.Buffer) error
- func (node *Node) Evict() bool
- func (node *Node) EvictChildren()
- func (node *Node) Hash() []byte
- func (node *Node) HashSelf() []byte
- func (node *Node) HashWith(h hash.Hash, buf *bytes.Buffer) []byte
- func (node *Node) IsLeaf() bool
- func (node *Node) Key() []byte
- func (node *Node) LeftNode() *Node
- func (node *Node) LeftNodeKey() NodeKey
- func (node *Node) NodeKey() NodeKey
- func (node *Node) PoolID() uint64
- func (node *Node) Reset()
- func (node *Node) RightNode() *Node
- func (node *Node) RightNodeKey() NodeKey
- func (node *Node) SetDirty(dirty bool)
- func (node *Node) SetHash(hash []byte)
- func (node *Node) SetKey(key []byte)
- func (node *Node) SetLeft(leftNode *Node)
- func (node *Node) SetLeftNodeKey(key NodeKey)
- func (node *Node) SetNodeKey(nk NodeKey)
- func (node *Node) SetPoolID(id uint64)
- func (node *Node) SetRight(rightNode *Node)
- func (node *Node) SetRightNodeKey(key NodeKey)
- func (node *Node) SetSize(size int64)
- func (node *Node) SetSource(src Source)
- func (node *Node) SetSubTreeHeight(height int8)
- func (node *Node) SetValue(value []byte)
- func (node *Node) ShadowCopy(nodepool Pool) *Node
- func (node *Node) Size() int64
- func (node *Node) SizeBytes() uint64
- func (node *Node) Source() Source
- func (node *Node) String() string
- func (node *Node) SubTreeHeight() int8
- func (node *Node) Value() []byte
- func (node *Node) Version() int64
- type NodeKey
- type Pool
- type SnapshotNode
- type Source
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyHash = sha256.New().Sum(nil)
Functions ¶
func DecodeValueOnly ¶
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node represents a node in a Tree.
func (*Node) CheckValid ¶
func (node *Node) CheckValid()
func (*Node) EvictChildren ¶
func (node *Node) EvictChildren()
func (*Node) HashSelf ¶
Computes the hash of the node without computing its descendants. Must be called on nodes which have descendant node hashes already computed.
func (*Node) LeftNodeKey ¶
func (*Node) RightNodeKey ¶
func (*Node) SetLeftNodeKey ¶
func (*Node) SetNodeKey ¶
func (*Node) SetRightNodeKey ¶
func (*Node) SetSubTreeHeight ¶
func (*Node) ShadowCopy ¶
func (*Node) SubTreeHeight ¶
Click to show internal directories.
Click to hide internal directories.