Documentation ¶
Index ¶
- Constants
- func CatchError(err *error)
- func CloseBuffer(p *bytes.Buffer, suffix string)
- func CreateRawBytesInst(name string) []typ.Inst
- func IfInt(v bool, t, f int) int
- func IfQuote(v bool, s string) string
- func IfStr(v bool, t, f string) string
- func IsDebug() bool
- func LineOf(text string, line int) (string, bool)
- func Or(a, b interface{}) interface{}
- func Panic(msg string, args ...interface{})
- func PanicErr(err error)
- func ParseNumber(v string) (vf float64, vi int64, isInt bool, err error)
- func SanitizeName(s string) string
- func ShouldNotHappen(args ...interface{})
- func StringifyTo(w io.Writer, i interface{})
- func Unnamed() string
- func UnnamedFunc() string
- func UnnamedLoadString() string
- func WriteString(w io.Writer, s string) (int, error)
- type LimitedBuffer
- type Packet
- func (b *Packet) CodePtr() uintptr
- func (b *Packet) Copy() *Packet
- func (b *Packet) LastInst() *typ.Inst
- func (b *Packet) Len() int
- func (b *Packet) TruncLast()
- func (b *Packet) WriteInst(op byte, opa, opb uint16)
- func (b *Packet) WriteInst2Ext(sub byte, opa, opb uint16)
- func (b *Packet) WriteInst3(op byte, opa, opb, opc uint16)
- func (b *Packet) WriteInst3Ext(sub byte, opa, opb, opc uint16)
- func (b *Packet) WriteJmpInst(op byte, d int)
- func (b *Packet) WriteLineNum(line uint32)
- type VByte32
Constants ¶
View Source
const (
MaxStackSize = 0x0fffffff
)
Variables ¶
This section is empty.
Functions ¶
func CatchError ¶
func CatchError(err *error)
func CloseBuffer ¶
func CreateRawBytesInst ¶
func SanitizeName ¶
func ShouldNotHappen ¶
func ShouldNotHappen(args ...interface{})
func StringifyTo ¶
func UnnamedFunc ¶
func UnnamedFunc() string
func UnnamedLoadString ¶
func UnnamedLoadString() string
Types ¶
type LimitedBuffer ¶
func (*LimitedBuffer) WriteByte ¶
func (w *LimitedBuffer) WriteByte(b byte) error
func (*LimitedBuffer) WriteString ¶
func (w *LimitedBuffer) WriteString(b string) (int, error)
type Packet ¶
func (*Packet) WriteInst2Ext ¶
func (*Packet) WriteInst3 ¶
func (*Packet) WriteInst3Ext ¶
func (*Packet) WriteJmpInst ¶
func (*Packet) WriteLineNum ¶
Click to show internal directories.
Click to hide internal directories.