bytecode

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerationConfig

type GenerationConfig struct {
	CommandBytelen   int
	ArglenBytelen    int
	ArgscountBytelen int
	Endianess        public.EndianType
}

type InstructionsGenerator

type InstructionsGenerator struct {
	Config GenerationConfig
}

func (*InstructionsGenerator) Generate

func (ig *InstructionsGenerator) Generate(
	opcode int, args [][]byte,
) []byte

type Shift

type Shift struct {
	Code []byte
	Idx  *int
}

func NewShift

func NewShift(code []byte, idx *int) *Shift

func (*Shift) ShiftError

func (s *Shift) ShiftError(length int) ([]byte, error)

func (*Shift) ShiftFloat64Error

func (s *Shift) ShiftFloat64Error(size int, endianess public.EndianType) (float64, error)

func (*Shift) ShiftFloat64Panic

func (s *Shift) ShiftFloat64Panic(size int, endianess public.EndianType) float64

func (*Shift) ShiftFloat64RangeError

func (s *Shift) ShiftFloat64RangeError(size int, minVal, maxVal float64, endianess public.EndianType) (float64, error)

func (*Shift) ShiftFloat64RangePanic

func (s *Shift) ShiftFloat64RangePanic(size int, minVal, maxVal float64, endianess public.EndianType) float64

func (*Shift) ShiftPanic

func (s *Shift) ShiftPanic(length int) []byte

type Utils

type Utils struct{}

func (*Utils) AutoFloat64ToBytes

func (u *Utils) AutoFloat64ToBytes(value float64, endianess public.EndianType) []byte

func (*Utils) AutoIntToBytes

func (u *Utils) AutoIntToBytes(value int, endianess public.EndianType) []byte

func (*Utils) BytesToFloat64

func (u *Utils) BytesToFloat64(bytes []byte, endianess public.EndianType) float64

func (*Utils) BytesToFloat64BigEndian

func (u *Utils) BytesToFloat64BigEndian(bytes []byte) float64

func (*Utils) BytesToFloat64LittleEndian

func (u *Utils) BytesToFloat64LittleEndian(bytes []byte) float64

func (*Utils) BytesToFloat64Range

func (u *Utils) BytesToFloat64Range(bytes []byte, minVal, maxVal float64, endianess public.EndianType) float64

func (*Utils) BytesToInt

func (u *Utils) BytesToInt(bytes []byte, endianess public.EndianType) int

func (*Utils) BytesToIntBigEndian

func (u *Utils) BytesToIntBigEndian(bytes []byte) int

func (*Utils) BytesToIntLittleEndian

func (u *Utils) BytesToIntLittleEndian(bytes []byte) int

func (*Utils) Float64ToBytes

func (u *Utils) Float64ToBytes(value float64, size int, endianess public.EndianType) []byte

func (*Utils) Float64ToBytesBigEndian

func (u *Utils) Float64ToBytesBigEndian(value float64, size int) []byte

func (*Utils) Float64ToBytesLittleEndian

func (u *Utils) Float64ToBytesLittleEndian(value float64, size int) []byte

func (*Utils) Float64ToBytesRange

func (u *Utils) Float64ToBytesRange(value float64, size int, minVal, maxVal float64, endianess public.EndianType) []byte

func (*Utils) IntToBytes

func (u *Utils) IntToBytes(value int, size int, endianess public.EndianType) []byte

func (*Utils) IntToBytesBigEndian

func (u *Utils) IntToBytesBigEndian(value int, size int) []byte

func (*Utils) IntToBytesLittleEndian

func (u *Utils) IntToBytesLittleEndian(value int, size int) []byte

Jump to

Keyboard shortcuts

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