Versions in this module Expand all Collapse all v4 v4.4.0 Jun 29, 2023 Changes in this version + func Marshal(v interface{}) ([]byte, error) + func Register(value interface{}, enc encoderFunc, dec decoderFunc) + func RegisterExt(id int8, value interface{}) + func Unmarshal(data []byte, v interface{}) error + type CustomDecoder interface + DecodeMsgpack func(*Decoder) error + type CustomEncoder interface + EncodeMsgpack func(*Encoder) error + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Buffered() io.Reader + func (d *Decoder) Decode(v interface{}) error + func (d *Decoder) DecodeArrayLen() (int, error) + func (d *Decoder) DecodeBool() (bool, error) + func (d *Decoder) DecodeBytes() ([]byte, error) + func (d *Decoder) DecodeBytesLen() (int, error) + func (d *Decoder) DecodeDuration() (time.Duration, error) + func (d *Decoder) DecodeExtHeader() (typeID int8, length int, err error) + func (d *Decoder) DecodeFloat32() (float32, error) + func (d *Decoder) DecodeFloat64() (float64, error) + func (d *Decoder) DecodeInt() (int, error) + func (d *Decoder) DecodeInt16() (int16, error) + func (d *Decoder) DecodeInt32() (int32, error) + func (d *Decoder) DecodeInt64() (int64, error) + func (d *Decoder) DecodeInt8() (int8, error) + func (d *Decoder) DecodeInterface() (interface{}, error) + func (d *Decoder) DecodeInterfaceLoose() (interface{}, error) + func (d *Decoder) DecodeMap() (interface{}, error) + func (d *Decoder) DecodeMapLen() (int, error) + func (d *Decoder) DecodeMulti(v ...interface{}) error + func (d *Decoder) DecodeNil() error + func (d *Decoder) DecodeSlice() ([]interface{}, error) + func (d *Decoder) DecodeString() (string, error) + func (d *Decoder) DecodeTime() (time.Time, error) + func (d *Decoder) DecodeUint() (uint, error) + func (d *Decoder) DecodeUint16() (uint16, error) + func (d *Decoder) DecodeUint32() (uint32, error) + func (d *Decoder) DecodeUint64() (uint64, error) + func (d *Decoder) DecodeUint8() (uint8, error) + func (d *Decoder) DecodeValue(v reflect.Value) error + func (d *Decoder) DisallowUnknownFields() + func (d *Decoder) PeekCode() (codes.Code, error) + func (d *Decoder) Query(query string) ([]interface{}, error) + func (d *Decoder) Reset(r io.Reader) + func (d *Decoder) SetDecodeMapFunc(fn func(*Decoder) (interface{}, error)) + func (d *Decoder) Skip() error + func (d *Decoder) UseDecodeInterfaceLoose(on bool) *Decoder + func (d *Decoder) UseJSONTag(on bool) *Decoder + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(v interface{}) error + func (e *Encoder) EncodeArrayLen(l int) error + func (e *Encoder) EncodeBool(value bool) error + func (e *Encoder) EncodeBytes(v []byte) error + func (e *Encoder) EncodeBytesLen(l int) error + func (e *Encoder) EncodeDuration(d time.Duration) error + func (e *Encoder) EncodeExtHeader(typeID int8, length int) error + func (e *Encoder) EncodeFloat32(n float32) error + func (e *Encoder) EncodeFloat64(n float64) error + func (e *Encoder) EncodeInt(n int64) error + func (e *Encoder) EncodeInt16(n int16) error + func (e *Encoder) EncodeInt32(n int32) error + func (e *Encoder) EncodeInt64(n int64) error + func (e *Encoder) EncodeInt8(n int8) error + func (e *Encoder) EncodeMapLen(l int) error + func (e *Encoder) EncodeMulti(v ...interface{}) error + func (e *Encoder) EncodeNil() error + func (e *Encoder) EncodeString(v string) error + func (e *Encoder) EncodeTime(tm time.Time) error + func (e *Encoder) EncodeUint(n uint64) error + func (e *Encoder) EncodeUint16(n uint16) error + func (e *Encoder) EncodeUint32(n uint32) error + func (e *Encoder) EncodeUint64(n uint64) error + func (e *Encoder) EncodeUint8(n uint8) error + func (e *Encoder) EncodeValue(v reflect.Value) error + func (e *Encoder) Reset(w io.Writer) + func (e *Encoder) SortMapKeys(on bool) *Encoder + func (e *Encoder) StructAsArray(on bool) *Encoder + func (e *Encoder) UseCompactEncoding(on bool) *Encoder + func (e *Encoder) UseCompactFloats(on bool) + func (e *Encoder) UseJSONTag(on bool) *Encoder + type Marshaler interface + MarshalMsgpack func() ([]byte, error) + type Unmarshaler interface + UnmarshalMsgpack func([]byte) error Other modules containing this package github.com/MixinNetwork/msgpack