protobuf

package
v0.0.0-...-2ce8e60 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProtobufInput

func NewProtobufInput(reader io.Reader) core.Input

func NewProtobufInputFactory

func NewProtobufInputFactory() core.InputFactory

func NewProtobufOutput

func NewProtobufOutput(writer io.Writer) core.Output

func NewProtobufOutputFactory

func NewProtobufOutputFactory() core.OutputFactory

Types

type Allocator

type Allocator interface {
	New(size int) (buffer []byte)
	Dispose(buffer []byte)
}

func NewAllocatorHeap

func NewAllocatorHeap() Allocator

type BufferPool

type BufferPool interface {
	Allocator
	Close()
}

func NewBufferPoolFixed

func NewBufferPoolFixed(allocator Allocator, size, capacity int) BufferPool

func NewBufferPoolSingle

func NewBufferPoolSingle(allocator Allocator) BufferPool

type ProtoMarshaler

type ProtoMarshaler interface {
	Size() int
	MarshalTo(data []byte) (n int, err error)
}

Jump to

Keyboard shortcuts

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