cbbinary

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeyBigEndian = [8]byte{'b', 'i', 'n', 'a', 'r', 'y', 'b', 0}
View Source
var KeyLittleEndian = [8]byte{'b', 'i', 'n', 'a', 'r', 'y', 'l', 0}

Functions

This section is empty.

Types

type Config

type Config struct {
	Endian binary.ByteOrder
}

type Encoding

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

func New

func New(config Config) *Encoding

func (*Encoding) Decode

func (b *Encoding) Decode(encoded []byte, out interface{}) error

func (*Encoding) DecodeReader

func (b *Encoding) DecodeReader(reader io.Reader, out interface{}) error

func (*Encoding) Encode

func (b *Encoding) Encode(data interface{}) ([]byte, error)

func (*Encoding) EncodeWriter

func (b *Encoding) EncodeWriter(data interface{}, writer io.Writer) error

func (*Encoding) GetKey

func (b *Encoding) GetKey() [8]byte

Jump to

Keyboard shortcuts

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