Documentation ¶
Index ¶
- Constants
- Variables
- func AttachObjectFactory(database db.Database, factory ImplFactory) db.Database
- func GetFromMutableForObject(trie trie.MutableForObject, key []byte) (trie.Object, error)
- type BytesImpl
- func (b BytesImpl) ClearCache()
- func (b BytesImpl) Equal(o Impl) bool
- func (b BytesImpl) Flush() error
- func (b BytesImpl) RLPDecodeFields(decoder codec.Decoder) error
- func (b BytesImpl) RLPEncodeFields(encoder codec.Encoder) error
- func (b BytesImpl) Reset(dbase db.Database) error
- func (b BytesImpl) Resolve(builder merkle.Builder) error
- func (b BytesImpl) Version() int
- type Impl
- type ImplFactory
- type NoDatabase
- type Object
- func (o *Object) Bytes() []byte
- func (o *Object) BytesValue() []byte
- func (o *Object) ClearCache()
- func (o *Object) Equal(object trie.Object) bool
- func (o *Object) Flush() error
- func (o *Object) Format(f fmt.State, c rune)
- func (o *Object) RLPDecodeSelf(d codec.Decoder, factory ImplFactory) error
- func (o *Object) RLPEncodeSelf(e codec.Encoder) error
- func (o *Object) Real() Impl
- func (o *Object) Reset(dbase db.Database, bs []byte) error
- func (o *Object) Resolve(builder merkle.Builder) error
- func (o *Object) Tag() Tag
- type ObjectStoreSnapshot
- type ObjectStoreState
- type Tag
Constants ¶
View Source
const (
TypeBytes = TypeReserved + iota
)
View Source
const TypeReserved int = 30
Variables ¶
View Source
var ObjectType = reflect.TypeOf((*Object)(nil))
Functions ¶
func AttachObjectFactory ¶
func AttachObjectFactory(database db.Database, factory ImplFactory) db.Database
func GetFromMutableForObject ¶
Types ¶
type BytesImpl ¶
type BytesImpl []byte
func (BytesImpl) ClearCache ¶
func (b BytesImpl) ClearCache()
type ImplFactory ¶
func FactoryOf ¶
func FactoryOf(database db.Database) ImplFactory
type NoDatabase ¶
type NoDatabase struct{}
func (*NoDatabase) ClearCache ¶
func (o *NoDatabase) ClearCache()
func (*NoDatabase) Flush ¶
func (o *NoDatabase) Flush() error
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func NewBytesObject ¶
func (*Object) BytesValue ¶
func (*Object) ClearCache ¶
func (o *Object) ClearCache()
func (*Object) RLPDecodeSelf ¶
func (o *Object) RLPDecodeSelf(d codec.Decoder, factory ImplFactory) error
type ObjectStoreSnapshot ¶
type ObjectStoreSnapshot struct { trie.ImmutableForObject // contains filtered or unexported fields }
func NewObjectStoreSnapshot ¶
func NewObjectStoreSnapshot(t trie.ImmutableForObject) *ObjectStoreSnapshot
func (ObjectStoreSnapshot) BytesToObject ¶
func (*ObjectStoreSnapshot) Delete ¶
func (o *ObjectStoreSnapshot) Delete(_ []byte) (trie.Object, error)
func (ObjectStoreSnapshot) ObjectToBytes ¶
type ObjectStoreState ¶
type ObjectStoreState struct { trie.MutableForObject // contains filtered or unexported fields }
func NewObjectStoreState ¶
func NewObjectStoreState(t trie.MutableForObject) *ObjectStoreState
func (ObjectStoreState) BytesToObject ¶
func (ObjectStoreState) ObjectToBytes ¶
Click to show internal directories.
Click to hide internal directories.