Documentation ¶
Overview ¶
Package object provides functionalities for handling different types of Massa objects. It supports encoding and decoding operations with appropriate prefixes and versioning.
Index ¶
- Variables
- type Kind
- type Object
- func (o *Object) MarshalBinary() ([]byte, error)
- func (o *Object) MarshalText() ([]byte, error)
- func (o *Object) MustBytes() []byte
- func (o *Object) UnmarshalBinary(data []byte) error
- func (o *Object) UnmarshalText(text []byte) error
- func (o *Object) Validate(lastVersion byte, expectedKinds ...Kind) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Kind ¶
type Kind int
Kind represents the type of data being manipulated.
type Object ¶
Object represents a Massa object with its data, kind, and version.
func (*Object) MarshalBinary ¶
MarshalBinary implements the encoding.BinaryMarshaler interface.
func (*Object) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Object) UnmarshalBinary ¶
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.
func (*Object) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.