binaryx

package
v0.0.0-...-4da1013 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendBytes

func AppendBytes(origin []byte, data []byte) []byte

func GetState

func GetState(state uint, key uint) bool

func ReadBool

func ReadBool(r io.Reader, order binary.ByteOrder) (data bool, err error)

func ReadBytes

func ReadBytes(r io.Reader, order binary.ByteOrder) (data []byte, err error)

func ReadBytesLength

func ReadBytesLength(r io.Reader, order binary.ByteOrder, length int16) (data []byte, err error)

func ReadFloat32

func ReadFloat32(r io.Reader, order binary.ByteOrder) (data float32, err error)

func ReadFloat64

func ReadFloat64(r io.Reader, order binary.ByteOrder) (data float64, err error)

func ReadInt16

func ReadInt16(r io.Reader, order binary.ByteOrder) (data int16, err error)

func ReadInt32

func ReadInt32(r io.Reader, order binary.ByteOrder) (data int32, err error)

func ReadInt64

func ReadInt64(r io.Reader, order binary.ByteOrder) (data int64, err error)

func ReadInt8

func ReadInt8(r io.Reader, order binary.ByteOrder) (data int8, err error)

func ReadUTF

func ReadUTF(r io.Reader, order binary.ByteOrder) (data string, err error)

func ReadUint16

func ReadUint16(r io.Reader, order binary.ByteOrder) (data uint16, err error)

func ReadUint32

func ReadUint32(r io.Reader, order binary.ByteOrder) (data uint32, err error)

func ReadUint64

func ReadUint64(r io.Reader, order binary.ByteOrder) (data uint64, err error)

func ReadUint8

func ReadUint8(r io.Reader, order binary.ByteOrder) (data uint8, err error)

func SetState

func SetState(state uint, key uint, value bool) uint

func StringToBytes

func StringToBytes(s string) []byte

func WriteBool

func WriteBool(w io.Writer, order binary.ByteOrder, val bool) error

func WriteBytes

func WriteBytes(w io.Writer, order binary.ByteOrder, data []byte) (err error)

func WriteBytesLength

func WriteBytesLength(w io.Writer, order binary.ByteOrder, data []byte) (err error)

func WriteFloat32

func WriteFloat32(w io.Writer, order binary.ByteOrder, val float32) error

func WriteFloat64

func WriteFloat64(w io.Writer, order binary.ByteOrder, val float64) error

func WriteInt16

func WriteInt16(w io.Writer, order binary.ByteOrder, val int16) error

func WriteInt32

func WriteInt32(w io.Writer, order binary.ByteOrder, val int32) error

func WriteInt64

func WriteInt64(w io.Writer, order binary.ByteOrder, val int64) error

func WriteInt8

func WriteInt8(w io.Writer, order binary.ByteOrder, val int8) error

func WriteUTF

func WriteUTF(w io.Writer, order binary.ByteOrder, data string) (err error)

func WriteUint16

func WriteUint16(w io.Writer, order binary.ByteOrder, val uint16) error

func WriteUint32

func WriteUint32(w io.Writer, order binary.ByteOrder, val uint32) error

func WriteUint64

func WriteUint64(w io.Writer, order binary.ByteOrder, val uint64) error

func WriteUint8

func WriteUint8(w io.Writer, order binary.ByteOrder, val 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