proto

package module
v0.0.0-...-9fdaf6a Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2016 License: MIT Imports: 3 Imported by: 2

README

proto

Documentation

Index

Constants

View Source
const DefaultByteNumForLength = 2

Variables

View Source
var (
	ErrTooShort           = errors.New("too short")
	ErrUnknownMessageName = errors.New("unknown message name")
)

Functions

func Decode

func Decode(b []byte) (proto.Message, error)

func DecodeLength

func DecodeLength(buf []byte) int

func Encode

func Encode(w io.Writer, v proto.Message) error

func EncodeLength

func EncodeLength(length int, buf []byte) []byte

Types

type FactoryFunc

type FactoryFunc func() proto.Message

Jump to

Keyboard shortcuts

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