Documentation ¶
Index ¶
- func Hv_Key(s Scalar) interface{}
- func RawScalarComp(a, b interface{}) int
- func ScalarComp(a, b Scalar) int
- func ScalarLess(a, b Scalar) bool
- type AV
- func (av *AV) Fetch(i int64, unset bool) Scalar
- func (av *AV) FetchSlot(i int64, unset bool) ScalarSlot
- func (av *AV) FetchUp(i int64, unset bool) *Scalar
- func (av *AV) Len() int
- func (av *AV) Pop(s Scalar) Scalar
- func (av *AV) Push(s Scalar)
- func (av *AV) Store(i int64) *Scalar
- func (av *AV) StoreSlot(i int64) ScalarSlot
- type ClassLoaderRef
- type HV
- type ScBuffer
- func (s ScBuffer) AppendTo(prefix []byte) []byte
- func (s ScBuffer) Bool() bool
- func (s ScBuffer) Bytes() []byte
- func (s ScBuffer) Float() float64
- func (s ScBuffer) Integer() int64
- func (ScBuffer) IsBytes() bool
- func (ScBuffer) IsFloat() bool
- func (v ScBuffer) Less(s Scalar) bool
- func (s ScBuffer) String() string
- func (ScBuffer) Type() Type
- type ScFloat
- func (v ScFloat) AppendTo(prefix []byte) []byte
- func (v ScFloat) Bool() bool
- func (v ScFloat) Bytes() []byte
- func (v ScFloat) Float() float64
- func (v ScFloat) Integer() int64
- func (ScFloat) IsBytes() bool
- func (ScFloat) IsFloat() bool
- func (v ScFloat) Less(s Scalar) bool
- func (v ScFloat) String() string
- func (ScFloat) Type() Type
- type ScInt
- func (v ScInt) AppendTo(prefix []byte) []byte
- func (v ScInt) Bool() bool
- func (v ScInt) Bytes() []byte
- func (v ScInt) Float() float64
- func (v ScInt) Integer() int64
- func (ScInt) IsBytes() bool
- func (ScInt) IsFloat() bool
- func (v ScInt) Less(s Scalar) bool
- func (v ScInt) String() string
- func (ScInt) Type() Type
- type ScModule
- func (r *ScModule) AppendTo(prefix []byte) []byte
- func (*ScModule) Bool() bool
- func (r *ScModule) Bytes() []byte
- func (r *ScModule) Float() float64
- func (r *ScModule) Integer() int64
- func (*ScModule) IsBytes() bool
- func (r *ScModule) IsFloat() bool
- func (r *ScModule) Less(s Scalar) bool
- func (r *ScModule) String() string
- func (r *ScModule) Type() Type
- type ScReference
- func (r *ScReference) AppendTo(prefix []byte) []byte
- func (*ScReference) Bool() bool
- func (r *ScReference) Bytes() []byte
- func (r *ScReference) Float() float64
- func (r *ScReference) Integer() int64
- func (*ScReference) IsBytes() bool
- func (r *ScReference) IsFloat() bool
- func (r *ScReference) Less(s Scalar) bool
- func (r *ScReference) String() string
- func (r *ScReference) Type() Type
- type ScString
- func (s ScString) AppendTo(prefix []byte) []byte
- func (s ScString) Bool() bool
- func (s ScString) Bytes() []byte
- func (s ScString) Float() float64
- func (s ScString) Integer() int64
- func (ScString) IsBytes() bool
- func (ScString) IsFloat() bool
- func (v ScString) Less(s Scalar) bool
- func (s ScString) String() string
- func (ScString) Type() Type
- type Scalar
- func Add(a, b Scalar) Scalar
- func And(a, b Scalar) Scalar
- func Av_Index(ref, idx Scalar) Scalar
- func Bool2S(b bool) Scalar
- func Comp(a, b Scalar) Scalar
- func Concat(a, b Scalar) Scalar
- func Div(a, b Scalar) Scalar
- func EQ(a, b Scalar) Scalar
- func ForceTrue(a Scalar) Scalar
- func GE(a, b Scalar) Scalar
- func GT(a, b Scalar) Scalar
- func Hv_Curate(s Scalar) Scalar
- func Hv_Index(ref, idx Scalar) Scalar
- func LE(a, b Scalar) Scalar
- func LT(a, b Scalar) Scalar
- func Mod(a, b Scalar) Scalar
- func Mul(a, b Scalar) Scalar
- func NE(a, b Scalar) Scalar
- func Null() Scalar
- func Or(a, b Scalar) Scalar
- func Sub(a, b Scalar) Scalar
- func UBitInv(a Scalar) Scalar
- func UMinus(a Scalar) Scalar
- func UNot(a Scalar) Scalar
- func UPlus(a Scalar) Scalar
- type ScalarSlot
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RawScalarComp ¶
func RawScalarComp(a, b interface{}) int
func ScalarComp ¶
func ScalarLess ¶
Types ¶
type AV ¶
type AV []Scalar
func (*AV) Fetch ¶
Retrieves the scalar from the given index. If unset is true, it replaces the existing value (at that location) with an null.
func (*AV) FetchSlot ¶
func (av *AV) FetchSlot(i int64, unset bool) ScalarSlot
Retrieves the scalar from the given index. If unset is true, it replaces the existing value (at that location) with an null. Note that FetchSlot returns ScalarSlot, not Scalar. This way you can update the slot as you wish.
func (*AV) FetchUp ¶
Retrieves the scalar from the given index. If unset is true, it replaces the existing value (at that location) with an null. Note that FetchUp returns *Scalar, not Scalar. This way you can update the slot as you wish.
func (*AV) StoreSlot ¶
func (av *AV) StoreSlot(i int64) ScalarSlot
type ClassLoaderRef ¶
type HV ¶
func (*HV) Get ¶
func (hv *HV) Get(key Scalar) ScalarSlot
func (*HV) Put ¶
func (hv *HV) Put(key Scalar) ScalarSlot
type ScModule ¶
type ScModule struct { Name string DisplayName string Clid uintptr ClassLoader interface{} // *vm.ClassLoader ModuleObject interface{} // *vm.Module or nil }
func AllocNewScModule ¶
func GetScModule ¶
type ScReference ¶
func AllocScReference ¶
func AllocScReference() *ScReference
func (*ScReference) AppendTo ¶
func (r *ScReference) AppendTo(prefix []byte) []byte
func (*ScReference) Bool ¶
func (*ScReference) Bool() bool
func (*ScReference) Bytes ¶
func (r *ScReference) Bytes() []byte
func (*ScReference) Float ¶
func (r *ScReference) Float() float64
func (*ScReference) Integer ¶
func (r *ScReference) Integer() int64
func (*ScReference) IsBytes ¶
func (*ScReference) IsBytes() bool
func (*ScReference) IsFloat ¶
func (r *ScReference) IsFloat() bool
func (*ScReference) Less ¶
func (r *ScReference) Less(s Scalar) bool
func (*ScReference) String ¶
func (r *ScReference) String() string
func (*ScReference) Type ¶
func (r *ScReference) Type() Type
type Scalar ¶
type Scalar interface { Type() Type IsFloat() bool Integer() int64 Float() float64 IsBytes() bool String() string Bytes() []byte AppendTo(prefix []byte) []byte Less(s Scalar) bool Bool() bool }
type ScalarSlot ¶
func Av_IndexSlot ¶
func Av_IndexSlot(ref, idx Scalar) ScalarSlot
func Hv_IndexSlot ¶
func Hv_IndexSlot(ref, idx Scalar) ScalarSlot
func MakeScalarSlot ¶
func MakeScalarSlot(a *Scalar) ScalarSlot
func NonSlot ¶
func NonSlot() ScalarSlot
Click to show internal directories.
Click to hide internal directories.