binenc

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

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

Encoder is a binary encoding facility

func New

func New() *Encoder

New constructs new binary encoder

func (*Encoder) Bool

func (e *Encoder) Bool(value bool) []byte

Bool into sequence of bytes

func (*Encoder) Byte

func (e *Encoder) Byte(value byte) []byte

Byte maps byte into memory

func (*Encoder) Decimal28 added in v1.1.0

func (e *Encoder) Decimal28(lo, hi uint64) []byte

Decimal28 into LittleBig sequence of bytes

func (*Encoder) Float32

func (e *Encoder) Float32(value float32) []byte

Float32 maps float32 value into uint32 and then decode it in a LittleBig sequence

func (*Encoder) Float64

func (e *Encoder) Float64(value float64) []byte

Float64 maps float64 value into uint64 and then decode it in a LittleBig sequence

func (*Encoder) Int16

func (e *Encoder) Int16(value int16) []byte

Int16 into LittleBig sequence of bytes

func (*Encoder) Int32

func (e *Encoder) Int32(value int32) []byte

Int32 into LittleBig sequence of bytes

func (*Encoder) Int64

func (e *Encoder) Int64(value int64) []byte

Int64 into LittleBig sequence of bytes

func (*Encoder) Uint16

func (e *Encoder) Uint16(value uint16) []byte

Uint16 into LittleBig sequence of bytes

func (*Encoder) Uint32

func (e *Encoder) Uint32(value uint32) []byte

Uint32 into LittleBig sequence of bytes

func (*Encoder) Uint64

func (e *Encoder) Uint64(value uint64) []byte

Uint64 into LittleBig sequence of bytes

func (*Encoder) Uleb128

func (e *Encoder) Uleb128(value uint32) []byte

Uleb128 performs unsigned leb128 encryption over the uint32 value

Jump to

Keyboard shortcuts

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