msgpack

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package msgpack implements encoding and decoding of MessagePack.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	*msgpack.Decoder
}

A Decoder reads and decodes MessagePack encoding from an input stream.

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

NewDecoder returns a new decoder that reads from r.

func (*Decoder) Decode

func (c *Decoder) Decode(v interface{}) error

Decode reads MessagePack encoding value from its input and stores it in the value pointed to by v.

type Encoder

type Encoder struct {
	*msgpack.Encoder
}

An Encoder writes MessagePack encoding value to an output stream.

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

NewEncoder returns a new encoder that writes to w.

Jump to

Keyboard shortcuts

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