interpreter

package
Version: v0.0.0-...-2e820b9 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(interp Interpreter)

func RegisterAlias

func RegisterAlias(name string, interp Interpreter)

Types

type Int32Big

type Int32Big struct{}

func (Int32Big) Interpret

func (in Int32Big) Interpret(data []byte) (intData []*Interpretation, err error)

func (Int32Big) Name

func (in Int32Big) Name() string

type Int32Little

type Int32Little struct{}

func (Int32Little) Interpret

func (in Int32Little) Interpret(data []byte) (intData []*Interpretation, err error)

func (Int32Little) Name

func (in Int32Little) Name() string

type Int64Big

type Int64Big struct{}

func (Int64Big) Interpret

func (in Int64Big) Interpret(data []byte) (intData []*Interpretation, err error)

func (Int64Big) Name

func (in Int64Big) Name() string

type Int64Little

type Int64Little struct{}

func (Int64Little) Interpret

func (in Int64Little) Interpret(data []byte) (intData []*Interpretation, err error)

func (Int64Little) Name

func (in Int64Little) Name() string

type Interpretation

type Interpretation struct {
	Description string
	Value       string
	Endianess   endianess.T
}

type Interpreter

type Interpreter interface {
	Name() string
	Interpret(data []byte) (intData []*Interpretation, err error)
}

func Get

func Get(name string) (interp Interpreter, ok bool)

func Joined

func Joined(name string, subs ...Interpreter) Interpreter

type UInt32Big

type UInt32Big struct{}

func (UInt32Big) Interpret

func (in UInt32Big) Interpret(data []byte) (intData []*Interpretation, err error)

func (UInt32Big) Name

func (in UInt32Big) Name() string

type UInt32Little

type UInt32Little struct{}

func (UInt32Little) Interpret

func (in UInt32Little) Interpret(data []byte) (intData []*Interpretation, err error)

func (UInt32Little) Name

func (in UInt32Little) Name() string

type UInt64Big

type UInt64Big struct{}

func (UInt64Big) Interpret

func (in UInt64Big) Interpret(data []byte) (intData []*Interpretation, err error)

func (UInt64Big) Name

func (in UInt64Big) Name() string

type UInt64Little

type UInt64Little struct{}

func (UInt64Little) Interpret

func (in UInt64Little) Interpret(data []byte) (intData []*Interpretation, err error)

func (UInt64Little) Name

func (in UInt64Little) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL