pb

package
v0.0.0-...-810cf82 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyMessage = errors.New("unmarshaled an empty message")

Functions

func MarshalPrefixBytes

func MarshalPrefixBytes(msg proto.Message) ([]byte, error)

MarshalPrefixBytes marshals a uvarint length prefixed protobuf message.

func UnmarshalPrefixAt

func UnmarshalPrefixAt(rat io.ReaderAt, off int64, msg proto.Message) (n int, err error)

UnmarshalPrefixAt unmarshals a uvarint length prefixed protobuf message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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