ompt

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MPTFromImmutable

func MPTFromImmutable(immutable trie.ImmutableForObject) *mpt

func MPTFromImmutableForBytes

func MPTFromImmutableForBytes(immutable trie.Immutable) *mptForBytes

func NewImmutable

func NewImmutable(db db.Database, h []byte) trie.Immutable

func NewImmutableForObject

func NewImmutableForObject(db db.Database, h []byte, t reflect.Type) trie.ImmutableForObject

func NewMPT

func NewMPT(d db.Database, h []byte, t reflect.Type) *mpt

func NewMPTForBytes

func NewMPTForBytes(db db.Database, h []byte) *mptForBytes

func NewManager

func NewManager(db db.Database) trie.Manager

func NewMutable

func NewMutable(database db.Database, h []byte) trie.Mutable

func NewMutableForObject

func NewMutableForObject(db db.Database, h []byte, t reflect.Type) trie.MutableForObject

func NewMutableFromImmutable

func NewMutableFromImmutable(immutable trie.Immutable) trie.Mutable

func NewMutableFromImmutableForObject

func NewMutableFromImmutableForObject(immutable trie.ImmutableForObject) trie.MutableForObject

func SetCacheOfMutable

func SetCacheOfMutable(mutable trie.Mutable, cache *cache.NodeCache)

func SetCacheOfMutableForObject

func SetCacheOfMutableForObject(mutable trie.MutableForObject, cache *cache.NodeCache)

Types

type AutoRWUnlock added in v1.3.10

type AutoRWUnlock struct {
	// contains filtered or unexported fields
}

func RLock added in v1.3.10

func RLock(l *sync.RWMutex) AutoRWUnlock

func (*AutoRWUnlock) Migrate added in v1.3.10

func (l *AutoRWUnlock) Migrate()

func (*AutoRWUnlock) Unlock added in v1.3.10

func (l *AutoRWUnlock) Unlock()

type LockState added in v1.3.10

type LockState int
const (
	LockNone LockState = iota
	LockRead
	LockWrite
)

type RLPEncoder

type RLPEncoder interface {
	RLPEncode(o interface{}) error
	RLPWrite(b []byte)
}

type RLPListEncoder

type RLPListEncoder interface {
	RLPListSize() int
	RLPListEncode(e RLPEncoder) error
}

type RLPSerializer

type RLPSerializer interface {
	RLPSerialize() []byte
}

Jump to

Keyboard shortcuts

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