xbinary

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidLength invalid length error.
	ErrInvalidLength = errors.New("invalid length error")
)

Functions

func ReadBool

func ReadBool(r io.Reader) (bool, error)

ReadBool reads bool.

func ReadBytes

func ReadBytes(r io.Reader) (b []byte, err error)

ReadBytes reads bytes.

func ReadUint16

func ReadUint16(r io.Reader) (uint16, error)

ReadUint16 reads unit16.

func ReadUint32

func ReadUint32(r io.Reader) (uint32, error)

ReadUint32 reads unit32.

func WriteBool

func WriteBool(w io.Writer, b bool) error

WriteBool writes bool.

func WriteBytes

func WriteBytes(w io.Writer, s []byte) (err error)

WriteBytes writes bytes.

func WriteUint16

func WriteUint16(w io.Writer, i uint16) error

WriteUint16 writes unit16.

func WriteUint32

func WriteUint32(w io.Writer, i uint32) error

WriteUint32 writes unit32.

Types

This section is empty.

Jump to

Keyboard shortcuts

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