Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMalformedKeyPrefix key with malformed prefix ErrMalformedKeyPrefix = errors.New("malformed key prefix") )
View Source
var ( // ErrMalformedKeySize malformed buf size for a key ErrMalformedKeySize = errors.New("malformed key size") )
Functions ¶
Types ¶
type FixedFormatter ¶
type FixedFormatter interface { Formatter encoding.BinaryUnmarshaler Size() int }
FixedFormatter formarter with fixed size
type FixedFormatters ¶
type FixedFormatters []FixedFormatter
FixedFormatters a slice of formaters
func (FixedFormatters) UnmarshalBinary ¶
func (f FixedFormatters) UnmarshalBinary(buf []byte) error
UnmarshalBinary implement encoding.BinaryUnmarshaler
type Formatter ¶
type Formatter interface {
Bytes() []byte
}
Formatter the content part of a storage key
type I32 ¶
type I32 int32
I32 key formatter wrapper of int32
func (*I32) UnmarshalBinary ¶
UnmarshalBinary get int32 from bytes
type I64 ¶
type I64 int64
I64 key formatter wrapper of int64
func (*I64) UnmarshalBinary ¶
UnmarshalBinary get int64 from bytes
type UI32 ¶
type UI32 uint32
UI32 key formatter wrapper of uint32
func (*UI32) UnmarshalBinary ¶
UnmarshalBinary get uint32 from bytes
type UI64 ¶
type UI64 uint64
UI64 key formatter wrapper of uint64
func (*UI64) UnmarshalBinary ¶
UnmarshalBinary get uint64 from bytes
Click to show internal directories.
Click to hide internal directories.