encoding

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

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

Go to latest
Published: Oct 13, 2015 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GobGeneralDecoder

func GobGeneralDecoder() func([]byte, interface{})

func JsonGeneralDecoder

func JsonGeneralDecoder() func([]byte, interface{})

func JsonGeneralEncoder

func JsonGeneralEncoder() func(interface{}) ([]byte, error)

func NewGobDecodeOp

func NewGobDecodeOp(
	decFn func([]byte, func([]byte, interface{})) stream.Object) stream.InOutOperator

func NewGobEncodeOp

func NewGobEncodeOp() stream.InOutOperator

func NewJsonDecodeOp

func NewJsonDecodeOp(decFn func([]byte, func([]byte, interface{})) stream.Object) stream.InOutOperator

func NewJsonEncodeOp

func NewJsonEncodeOp() stream.Operator

func NewProtobufDecodeOp

func NewProtobufDecodeOp(decFn func([]byte, func([]byte, proto.Message)) stream.Object) stream.InOutOperator

func NewProtobufEncodeOp

func NewProtobufEncodeOp() stream.Operator

func ProtobufGeneralDecoder

func ProtobufGeneralDecoder() func([]byte, proto.Message)

Types

type ByteReader

type ByteReader struct {
	// contains filtered or unexported fields
}

stolen from bytes.Reader. Slightly changed to allow us to reuse gob.Decoder on same object

func (*ByteReader) Read

func (r *ByteReader) Read(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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