msgpack

package
v1.42.11 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgPackCodec

func NewMsgPackCodec() encoding.Codec

NewMsgPackCodec returns new ProtobufCodec

Types

type MsgPackCodec

type MsgPackCodec struct{}

MsgPackCodec is the msgpack impl of common.Codec interface

func (*MsgPackCodec) Marshal

func (p *MsgPackCodec) Marshal(v interface{}) ([]byte, error)

Marshal serialize interface @v to bytes

func (*MsgPackCodec) Name

func (p *MsgPackCodec) Name() string

func (*MsgPackCodec) Unmarshal

func (p *MsgPackCodec) Unmarshal(data []byte, v interface{}) error

Unmarshal deserialize @data to interface

Jump to

Keyboard shortcuts

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