encoding

package
v0.0.0-...-75137db Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2013 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 NewGobDecodeRop

func NewGobDecodeRop(gen interface{}) stream.InOutOperator

func NewGobEncodeRop

func NewGobEncodeRop() stream.InOutOperator

func NewJsonDecodeRop

func NewJsonDecodeRop(gen interface{}) stream.Operator

func NewJsonEncodeRop

func NewJsonEncodeRop() stream.Operator

func NewMakeProtobufMessageOp

func NewMakeProtobufMessageOp() stream.Operator

func NewProtobufDecodeOp

func NewProtobufDecodeOp(gen interface{}) stream.Operator

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