encoder

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func (*Command) AppendF64

func (o *Command) AppendF64(v float64)

func (*Command) AppendI32

func (o *Command) AppendI32(v int32)

func (*Command) AppendU32

func (o *Command) AppendU32(v uint32)

func (*Command) AppendU8

func (o *Command) AppendU8(v uint8)

func (*Command) Bytes

func (o *Command) Bytes() []byte

type Commands

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

func NewCommands

func NewCommands(commandSize int) *Commands

NewCommands creates an Commands, which encodes equally-sized commands. commandSize is a length of each command.

func (*Commands) AppendCommand

func (e *Commands) AppendCommand(op byte) Command

func (*Commands) Bytes

func (e *Commands) Bytes(maxLen int) []byte

Bytes returns commands fitting within maxLen; result always contains whole commands.

func (*Commands) Remove

func (e *Commands) Remove(bytes int)

Jump to

Keyboard shortcuts

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