binaryutil

package
v0.0.0-...-9289bc5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Error() error
	Skip(size uint)
	ReadLE(r any)
	ReadBE(r any)
	ReadU32LE() uint32
	Read32LE() int32
	ReadU16LE() uint16
	Read16LE() int16
	ReadU8LE() uint8
	Read8LE() int8
	ReadU32BE() uint32
	Read32BE() int32
	ReadU16BE() uint16
	Read16BE() int16
	ReadU8BE() uint8
	Read8BE() int8
}

func NewDecoder

func NewDecoder(r io.Reader) Decoder

type Encoder

type Encoder interface {
	Error() error
	Skip(size uint)
	WriteLE(r any)
	WriteBE(r any)
	WriteU32LE(r uint32)
	Write32LE(r int32)
	WriteU16LE(r uint16)
	Write16LE(r int16)
	WriteU8LE(r uint8)
	Write8LE(r int8)
	WriteU32BE(r uint32)
	Write32BE(r int32)
	WriteU16BE(r uint16)
	Write16BE(r int16)
	WriteU8BE(r uint8)
	Write8BE(r int8)
}

func NewEncoder

func NewEncoder(w io.Writer) Encoder

Jump to

Keyboard shortcuts

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