- Variables
- func AddExtCoder(e ext.Encoder, d ext.Decoder) error
- func Decode(data []byte, v interface{}) errordeprecated
- func DecodeStructAsArray(data []byte, v interface{}) errordeprecated
- func DecodeStructAsMap(data []byte, v interface{}) errordeprecated
- func Encode(v interface{}) ([]byte, error)deprecated
- func EncodeStructAsArray(v interface{}) ([]byte, error)deprecated
- func EncodeStructAsMap(v interface{}) ([]byte, error)deprecated
- func Marshal(v interface{}) ([]byte, error)
- func MarshalAsArray(v interface{}) ([]byte, error)
- func MarshalAsMap(v interface{}) ([]byte, error)
- func RemoveExtCoder(e ext.Encoder, d ext.Decoder) error
- func SetComplexTypeCode(code int8)
- func Unmarshal(data []byte, v interface{}) error
- func UnmarshalAsArray(data []byte, v interface{}) error
- func UnmarshalAsMap(data []byte, v interface{}) error
This section is empty.
StructAsArray is encoding option. If this option sets true, default encoding sets to array-format.
AddExtCoder adds encoders for extension types.
Deprecated: Use Marshal, this method will be deleted.
Marshal returns the MessagePack-encoded byte array of v.
EncodeStructAsArray encodes data as array format. This is the same thing that StructAsArray sets true.
MarshalAsMap encodes data as map format. This is the same thing that StructAsArray sets false.
RemoveExtCoder removes encoders for extension types.
func SetComplexTypeCode(code int8)
SetComplexTypeCode sets def.complexTypeCode
Unmarshal analyzes the MessagePack-encoded data and stores the result into the pointer of v.
UnmarshalAsArray decodes data that is encoded as array format. This is the same thing that StructAsArray sets true.
This section is empty.