Documentation
¶
Index ¶
- type GenerationConfig
- type InstructionsGenerator
- type Shift
- func (s *Shift) ShiftError(length int) ([]byte, error)
- func (s *Shift) ShiftFloat64Error(size int, endianess public.EndianType) (float64, error)
- func (s *Shift) ShiftFloat64Panic(size int, endianess public.EndianType) float64
- func (s *Shift) ShiftFloat64RangeError(size int, minVal, maxVal float64, endianess public.EndianType) (float64, error)
- func (s *Shift) ShiftFloat64RangePanic(size int, minVal, maxVal float64, endianess public.EndianType) float64
- func (s *Shift) ShiftPanic(length int) []byte
- type Utils
- func (u *Utils) AutoFloat64ToBytes(value float64, endianess public.EndianType) []byte
- func (u *Utils) AutoIntToBytes(value int, endianess public.EndianType) []byte
- func (u *Utils) BytesToFloat64(bytes []byte, endianess public.EndianType) float64
- func (u *Utils) BytesToFloat64BigEndian(bytes []byte) float64
- func (u *Utils) BytesToFloat64LittleEndian(bytes []byte) float64
- func (u *Utils) BytesToFloat64Range(bytes []byte, minVal, maxVal float64, endianess public.EndianType) float64
- func (u *Utils) BytesToInt(bytes []byte, endianess public.EndianType) int
- func (u *Utils) BytesToIntBigEndian(bytes []byte) int
- func (u *Utils) BytesToIntLittleEndian(bytes []byte) int
- func (u *Utils) Float64ToBytes(value float64, size int, endianess public.EndianType) []byte
- func (u *Utils) Float64ToBytesBigEndian(value float64, size int) []byte
- func (u *Utils) Float64ToBytesLittleEndian(value float64, size int) []byte
- func (u *Utils) Float64ToBytesRange(value float64, size int, minVal, maxVal float64, endianess public.EndianType) []byte
- func (u *Utils) IntToBytes(value int, size int, endianess public.EndianType) []byte
- func (u *Utils) IntToBytesBigEndian(value int, size int) []byte
- func (u *Utils) IntToBytesLittleEndian(value int, size int) []byte
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
}
type Shift ¶
func (*Shift) ShiftFloat64Error ¶
func (*Shift) ShiftFloat64Panic ¶
func (s *Shift) ShiftFloat64Panic(size int, endianess public.EndianType) float64
func (*Shift) ShiftFloat64RangeError ¶
func (*Shift) ShiftFloat64RangePanic ¶
func (*Shift) ShiftPanic ¶
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 (*Utils) BytesToFloat64LittleEndian ¶
func (*Utils) BytesToFloat64Range ¶
func (*Utils) BytesToInt ¶
func (u *Utils) BytesToInt(bytes []byte, endianess public.EndianType) int
func (*Utils) BytesToIntBigEndian ¶
func (*Utils) BytesToIntLittleEndian ¶
func (*Utils) Float64ToBytes ¶
func (*Utils) Float64ToBytesBigEndian ¶
func (*Utils) Float64ToBytesLittleEndian ¶
func (*Utils) Float64ToBytesRange ¶
func (*Utils) IntToBytes ¶
Click to show internal directories.
Click to hide internal directories.