msgpack

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2026 License: Apache-2.0 Imports: 2 Imported by: 5

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 返回序列化器名称

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL