byter

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

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

Go to latest
Published: Mar 19, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotEnough = errors.New("Not enough data")
)

Functions

func Appends

func Appends(val []byte, i interface{}) []byte

func EatBytes

func EatBytes(data []byte, leng int) ([]byte, []byte)

func EatUint16

func EatUint16(data []byte) ([]byte, uint16)

func EatUint32

func EatUint32(data []byte) ([]byte, uint32)

func EatUint64

func EatUint64(data []byte) ([]byte, uint64)

func EatUint8

func EatUint8(data []byte) ([]byte, uint8)

func OfUint16

func OfUint16(val uint16) []byte

func OfUint32

func OfUint32(val uint32) []byte

func OfUint64

func OfUint64(val uint64) []byte

func OfUint8

func OfUint8(val uint8) []byte

func ToUint16

func ToUint16(data []byte) uint16

func ToUint32

func ToUint32(data []byte) uint32

func ToUint64

func ToUint64(data []byte) uint64

func ToUint8

func ToUint8(data []byte) uint8

func TryEatBytes

func TryEatBytes(data []byte, leng int) ([]byte, []byte, error)

func TryEatUint16

func TryEatUint16(data []byte) ([]byte, uint16, error)

func TryEatUint32

func TryEatUint32(data []byte) ([]byte, uint32, error)

func TryEatUint64

func TryEatUint64(data []byte) ([]byte, uint64, error)

func TryEatUint8

func TryEatUint8(data []byte) ([]byte, uint8, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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