template

package
v0.0.0-...-ad801e6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeValue

func DecodeValue(
	reader xio.Reader,
	msg GenericDecodeProtoMessage,
	extBuf *[]byte,
) (int, error)

DecodeValue decodes a GenericDecodeProtoMessage message from a reader.

func DecodeValueRaw

func DecodeValueRaw(
	data []byte,
	msg GenericDecodeProtoMessage,
) (int, error)

DecodeValueRaw decodes raw bytes into a protobuf message, returning the number of bytes read and any errors encountered.

func EncodeValue

func EncodeValue(
	msg GenericEncodeProtoMessage,
	extBuf *[]byte,
	writer io.Writer,
) error

EncodeValue encodes a GenericValue message into a `io.Writer`. pool if the array is at capacity.

Types

type GenericDecodeProtoMessage

type GenericDecodeProtoMessage interface {
	generic.Type

	Unmarshal(dst []byte) error
}

GenericDecodeProtoMessage is a generic gogo protobuf generated Message type.

type GenericEncodeProtoMessage

type GenericEncodeProtoMessage interface {
	generic.Type

	MarshalTo(dst []byte) (int, error)
	Size() int
}

GenericEncodeProtoMessage is a generic gogo protobuf generated Message type.

Jump to

Keyboard shortcuts

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