msgp

package
v0.0.0-...-bf1012a Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package msgp implements encoding and decoding of MessagePack, relying on serialization code generated by msgp, the code generation library for MessagePack at github.com/tinylib/msgp.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct{}

func (Codec) Format

func (c Codec) Format() codec.Format

func (Codec) Marshal

func (c Codec) Marshal(v interface{}, in []byte) (out []byte, err error)

func (Codec) Unmarshal

func (c Codec) Unmarshal(data []byte, v interface{}) error

type Id

type Id []byte

Id is the msgp equivalent of bow.Id. It must be used instead.

func (*Id) DecodeMsg

func (z *Id) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Id) EncodeMsg

func (z Id) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Id) Marshal

func (id Id) Marshal(in []byte) ([]byte, error)

func (Id) MarshalMsg

func (z Id) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Id) Msgsize

func (z Id) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (Id) String

func (id Id) String() string

func (*Id) Unmarshal

func (id *Id) Unmarshal(b []byte) error

func (*Id) UnmarshalMsg

func (z *Id) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

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