sharedbytes

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2017 License: Apache-2.0, Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SharedBytes

type SharedBytes []byte

SharedBytes is a custom type for protobuf, it does not allocates memory in Unmarshal.

func (SharedBytes) Marshal

func (sb SharedBytes) Marshal() ([]byte, error)

Marshal implements custom type for gogo/protobuf.

func (SharedBytes) MarshalTo

func (sb SharedBytes) MarshalTo(data []byte) (n int, err error)

MarshalTo implements custom type for gogo/protobuf.

func (SharedBytes) Size

func (sb SharedBytes) Size() int

Size implements custom type for gogo/protobuf.

func (*SharedBytes) Unmarshal

func (sb *SharedBytes) Unmarshal(data []byte) error

Unmarshal implements custom type for gogo/protobuf.

Jump to

Keyboard shortcuts

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