Documentation ¶
Index ¶
- type DecodeFunc
- type Decoder
- func (dec *Decoder) Decode(v interface{}) error
- func (dec *Decoder) DecodeValue(v reflect.Value) error
- func (dec *Decoder) DecodeVariant(v interface{}) error
- func (dec *Decoder) ReadBool() (bool, error)
- func (dec *Decoder) ReadByte() (byte, error)
- func (dec *Decoder) ReadBytes(n int) (an int, b []byte, err error)
- func (dec *Decoder) ReadFloat32() (float32, error)
- func (dec *Decoder) ReadFloat64() (float64, error)
- func (dec *Decoder) ReadInt16() (int16, error)
- func (dec *Decoder) ReadInt32() (int32, error)
- func (dec *Decoder) ReadInt64() (int64, error)
- func (dec *Decoder) ReadInt8() (int8, error)
- func (dec *Decoder) ReadString() (string, error)
- func (dec *Decoder) ReadUint16() (uint16, error)
- func (dec *Decoder) ReadUint32() (uint32, error)
- func (dec *Decoder) ReadUint64() (uint64, error)
- func (dec *Decoder) ReadUint8() (uint8, error)
- func (dec *Decoder) ReadVarint() (int, error)
- func (dec *Decoder) ReadVaruint() (uint, error)
- type EncodeFunc
- type Encoder
- func (enc *Encoder) Encode(v interface{}) error
- func (enc *Encoder) EncodeValue(v reflect.Value) error
- func (enc *Encoder) WriteBool(v bool) error
- func (enc *Encoder) WriteByte(b byte) error
- func (enc *Encoder) WriteBytes(b []byte) error
- func (enc *Encoder) WriteFloat32(v float32) error
- func (enc *Encoder) WriteFloat64(v float64) error
- func (enc *Encoder) WriteInt16(v int16) error
- func (enc *Encoder) WriteInt32(v int32) error
- func (enc *Encoder) WriteInt64(v int64) error
- func (enc *Encoder) WriteInt8(v int8) error
- func (enc *Encoder) WriteString(v string) error
- func (enc *Encoder) WriteUint16(v uint16) error
- func (enc *Encoder) WriteUint32(v uint32) error
- func (enc *Encoder) WriteUint64(v uint64) error
- func (enc *Encoder) WriteUint8(v uint8) error
- func (enc *Encoder) WriteVarint(v int) error
- func (enc *Encoder) WriteVaruint(v uint) error
- type Marshaler
- type Unmarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecodeFunc ¶
Fast-path decoding function can be implemented to handle additional types without reflection.
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func NewDecoder(r io.Reader, fn DecodeFunc) *Decoder
Create a new EOSIO ABI decoder. Unless you know what you're doing, you should use the chain.NewDecoder() function instead.
func (*Decoder) DecodeValue ¶
Decode into reflected value, you should generally not call this directly.
func (*Decoder) DecodeVariant ¶
Decode variant, which must be a struct with all pointer fields.
func (*Decoder) ReadFloat32 ¶
func (*Decoder) ReadFloat64 ¶
func (*Decoder) ReadString ¶
func (*Decoder) ReadUint16 ¶
func (*Decoder) ReadUint32 ¶
func (*Decoder) ReadUint64 ¶
func (*Decoder) ReadVarint ¶
func (*Decoder) ReadVaruint ¶
type EncodeFunc ¶
Fast-path decoding function can be implemented to handle additional types without reflection.
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder(w io.Writer, fn EncodeFunc) *Encoder
func (*Encoder) WriteBytes ¶
func (*Encoder) WriteFloat32 ¶
func (*Encoder) WriteFloat64 ¶
func (*Encoder) WriteInt16 ¶
func (*Encoder) WriteInt32 ¶
func (*Encoder) WriteInt64 ¶
func (*Encoder) WriteString ¶
func (*Encoder) WriteUint16 ¶
func (*Encoder) WriteUint32 ¶
func (*Encoder) WriteUint64 ¶
func (*Encoder) WriteUint8 ¶
func (*Encoder) WriteVarint ¶
func (*Encoder) WriteVaruint ¶
type Unmarshaler ¶
Click to show internal directories.
Click to hide internal directories.