binary

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

func NewReader

func NewReader(data []byte) *Reader

func (*Reader) Bool

func (r *Reader) Bool() bool

func (*Reader) Byte

func (r *Reader) Byte() byte

func (*Reader) Bytes

func (r *Reader) Bytes(n int) []byte

func (*Reader) Capacity

func (r *Reader) Capacity(count uint32) int

func (*Reader) Data

func (r *Reader) Data() []byte

func (*Reader) Float32

func (r *Reader) Float32() float32

func (*Reader) Int32

func (r *Reader) Int32() int32

func (*Reader) Position

func (r *Reader) Position() int

func (*Reader) Remaining

func (r *Reader) Remaining() int

func (*Reader) SetPosition

func (r *Reader) SetPosition(pos int)

func (*Reader) Slice

func (r *Reader) Slice(start int, end int) *Reader

func (*Reader) String

func (r *Reader) String() string

func (*Reader) Uint32

func (r *Reader) Uint32() uint32

func (*Reader) Uint64

func (r *Reader) Uint64() uint64

type Writer

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

func NewWriter

func NewWriter() *Writer

func (*Writer) Bool

func (w *Writer) Bool(v bool)

func (*Writer) Byte

func (w *Writer) Byte(v byte)

func (*Writer) Bytes

func (w *Writer) Bytes(b []byte)

func (*Writer) Data

func (w *Writer) Data() []byte

func (*Writer) Float32

func (w *Writer) Float32(v float32)

func (*Writer) Int32

func (w *Writer) Int32(v int32)

func (*Writer) Len

func (w *Writer) Len() int

func (*Writer) String

func (w *Writer) String(v string)

func (*Writer) Uint32

func (w *Writer) Uint32(v uint32)

func (*Writer) Uint64

func (w *Writer) Uint64(v uint64)

Jump to

Keyboard shortcuts

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