Documentation ¶
Index ¶
- Constants
- func CopyBytes(b []byte) (copiedBytes []byte)
- func Deserialize(hash []byte, r io.Reader, needFlags bool) (node, error)
- type Database
- type Iterator
- type MemDatabase
- type NodeIterator
- type RefCounts
- func (ref *RefCounts) Commit() error
- func (ref *RefCounts) Compact() error
- func (ref *RefCounts) CreateRefCounts(hash common.Uint256, inMemory bool) error
- func (ref *RefCounts) LengthOfCounts() int
- func (ref *RefCounts) NewBatch() error
- func (ref *RefCounts) PersistPrunedHeights() error
- func (ref *RefCounts) PersistRefCountHeights() error
- func (ref *RefCounts) PersistRefCounts() error
- func (ref *RefCounts) Prune(hash common.Uint256, inMemory bool) error
- func (ref *RefCounts) RebuildRefCount() error
- func (ref *RefCounts) SequentialPrune() error
- func (ref *RefCounts) Verify(hash common.Uint256) error
- type Trie
- func (t *Trie) Commit() (common.Uint256, error)
- func (t *Trie) CommitTo(db Database) (common.Uint256, error)
- func (t *Trie) Copy() *Trie
- func (t *Trie) Delete(key []byte)
- func (t *Trie) Get(key []byte) []byte
- func (t *Trie) Hash() common.Uint256
- func (t *Trie) NewRefCounts(targetRefCountHeight, targetPruningHeight uint32) (*RefCounts, error)
- func (t *Trie) NodeIterator(start []byte) NodeIterator
- func (t *Trie) TryDelete(key []byte) error
- func (t *Trie) TryGet(key []byte) ([]byte, error)
- func (t *Trie) TryTraverse() error
- func (t *Trie) TryUpdate(key, value []byte) error
- func (t *Trie) Update(key, value []byte)
Constants ¶
View Source
const ( TagHashNode = 0 TagValueNode = 1 TagShortNode = 2 TagFullNode = 17 LenOfChildrenNodes = 17 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Iterator ¶
type Iterator struct { Key []byte Value []byte Err error // contains filtered or unexported fields }
func NewIterator ¶
func NewIterator(it NodeIterator) *Iterator
type MemDatabase ¶
type MemDatabase struct {
// contains filtered or unexported fields
}
func NewMemDatabase ¶
func NewMemDatabase() *MemDatabase
func (*MemDatabase) Delete ¶
func (db *MemDatabase) Delete(key []byte) error
func (*MemDatabase) ViewDB ¶
func (db *MemDatabase) ViewDB()
type NodeIterator ¶
type RefCounts ¶
type RefCounts struct {
// contains filtered or unexported fields
}
func NewRefCounts ¶
func (*RefCounts) CreateRefCounts ¶
func (*RefCounts) LengthOfCounts ¶
func (*RefCounts) PersistPrunedHeights ¶
func (*RefCounts) PersistRefCountHeights ¶
func (*RefCounts) PersistRefCounts ¶
func (*RefCounts) RebuildRefCount ¶
func (*RefCounts) SequentialPrune ¶
type Trie ¶
type Trie struct {
// contains filtered or unexported fields
}
func (*Trie) NewRefCounts ¶
func (*Trie) NodeIterator ¶
func (t *Trie) NodeIterator(start []byte) NodeIterator
func (*Trie) TryTraverse ¶
Click to show internal directories.
Click to hide internal directories.