msgpack

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 2 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CodecHandle *codec.MsgpackHandle

CodecHandle is used to instantiate msgpack encoders and decoders with our settings (canonical, paranoid about decoding errors)

Functions

func Decode

func Decode(b []byte, objptr interface{}) error

Decode attempts to decode a msgpack-encoded byte buffer into an object instance pointed to by objptr

func Encode

func Encode(obj interface{}) []byte

Encode returns a msgpack-encoded byte buffer for a given object

func NewDecoder

func NewDecoder(r io.Reader) *codec.Decoder

NewDecoder returns a msgpack decoder

Types

This section is empty.

Jump to

Keyboard shortcuts

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