Documentation
¶
Overview ¶
@Author daixk 2025/11/27 20:58:00
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgPackSerializer ¶
type MsgPackSerializer struct{}
MsgPackSerializer implements a MsgPack serializer MsgPack 序列化器实现
func NewMsgPackSerializer ¶
func NewMsgPackSerializer() *MsgPackSerializer
NewMsgPackSerializer creates a MsgPack serializer 创建 MsgPack 序列化器
func (*MsgPackSerializer) Decode ¶
func (s *MsgPackSerializer) Decode(data []byte, v any) error
Decode deserializes MsgPack into a value 从 MsgPack 解码
func (*MsgPackSerializer) Encode ¶
func (s *MsgPackSerializer) Encode(v any) ([]byte, error)
Encode serializes a value into MsgPack 编码为 MsgPack
func (*MsgPackSerializer) Name ¶
func (s *MsgPackSerializer) Name() string
Name returns the serializer name 返回序列化器名称
Click to show internal directories.
Click to hide internal directories.