est

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyStringPtr = unsafe.Pointer(&emptyString)
View Source
var FalseValuePtr = unsafe.Pointer(&falseValue)
View Source
var TrueValuePtr = unsafe.Pointer(&trueValue)
View Source
var ZeroFloatPtr = unsafe.Pointer(&zeroFloat)
View Source
var ZeroIntPtr = unsafe.Pointer(&zeroInt)

Functions

This section is empty.

Types

type Buffer

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

func NewBuffer

func NewBuffer(size int) *Buffer

func (*Buffer) AppendBool

func (b *Buffer) AppendBool(v bool)

func (*Buffer) AppendByte

func (b *Buffer) AppendByte(bs byte)

func (*Buffer) AppendFloat

func (b *Buffer) AppendFloat(v float64)

func (*Buffer) AppendInt

func (b *Buffer) AppendInt(v int)

func (*Buffer) AppendString

func (b *Buffer) AppendString(s string)

func (*Buffer) Bytes

func (b *Buffer) Bytes() []byte

func (*Buffer) Reset

func (b *Buffer) Reset()

func (*Buffer) String

func (b *Buffer) String() string

type Compute

type Compute func(state *State) unsafe.Pointer

type Computers

type Computers []New

func (Computers) New

func (c Computers) New(control Control) ([]Compute, error)

type Control

type Control uint8

Control represents execution control flags like uses continue, uses break

type Execution

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

func NewExecution

func NewExecution(compute Compute) *Execution

func (*Execution) Exec

func (e *Execution) Exec(stat *State)

type New

type New func(control Control) (Compute, error)

type State

type State struct {
	Mem       interface{}
	MemPtr    unsafe.Pointer
	StateType *scope.Type
	Buffer    *Buffer
}

TODO all privte p;easr

func (*State) Pointer

func (s *State) Pointer(offset uintptr) unsafe.Pointer

func (*State) Reset

func (s *State) Reset()

func (*State) SetValue

func (s *State) SetValue(k string, v interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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