Documentation ¶
Index ¶
- Constants
- func BigIntFromBytes(ba []byte) *big.Int
- func BigIntToBytes(data *big.Int) []byte
- type Array
- func (this *Array) Add(item StackItems)
- func (this *Array) Count() int
- func (this *Array) Equals(other StackItems) bool
- func (this *Array) GetArray() ([]StackItems, error)
- func (this *Array) GetBigInteger() (*big.Int, error)
- func (this *Array) GetBoolean() (bool, error)
- func (this *Array) GetByteArray() ([]byte, error)
- func (this *Array) GetInterface() (interfaces.Interop, error)
- func (this *Array) GetMap() (map[StackItems]StackItems, error)
- func (this *Array) GetStruct() ([]StackItems, error)
- type Boolean
- func (this *Boolean) Equals(other StackItems) bool
- func (this *Boolean) GetArray() ([]StackItems, error)
- func (this *Boolean) GetBigInteger() (*big.Int, error)
- func (this *Boolean) GetBoolean() (bool, error)
- func (this *Boolean) GetByteArray() ([]byte, error)
- func (this *Boolean) GetInterface() (interfaces.Interop, error)
- func (this *Boolean) GetMap() (map[StackItems]StackItems, error)
- func (this *Boolean) GetStruct() ([]StackItems, error)
- type ByteArray
- func (this *ByteArray) Equals(other StackItems) bool
- func (this *ByteArray) GetArray() ([]StackItems, error)
- func (this *ByteArray) GetBigInteger() (*big.Int, error)
- func (this *ByteArray) GetBoolean() (bool, error)
- func (this *ByteArray) GetByteArray() ([]byte, error)
- func (this *ByteArray) GetInterface() (interfaces.Interop, error)
- func (this *ByteArray) GetMap() (map[StackItems]StackItems, error)
- func (this *ByteArray) GetStruct() ([]StackItems, error)
- type Integer
- func (this *Integer) Equals(other StackItems) bool
- func (this *Integer) GetArray() ([]StackItems, error)
- func (this *Integer) GetBigInteger() (*big.Int, error)
- func (this *Integer) GetBoolean() (bool, error)
- func (this *Integer) GetByteArray() ([]byte, error)
- func (this *Integer) GetInterface() (interfaces.Interop, error)
- func (this *Integer) GetMap() (map[StackItems]StackItems, error)
- func (this *Integer) GetStruct() ([]StackItems, error)
- type Interop
- func (this *Interop) Equals(other StackItems) bool
- func (this *Interop) GetArray() ([]StackItems, error)
- func (this *Interop) GetBigInteger() (*big.Int, error)
- func (this *Interop) GetBoolean() (bool, error)
- func (this *Interop) GetByteArray() ([]byte, error)
- func (this *Interop) GetInterface() (interfaces.Interop, error)
- func (this *Interop) GetMap() (map[StackItems]StackItems, error)
- func (this *Interop) GetStruct() ([]StackItems, error)
- type Map
- func (this *Map) Add(key StackItems, value StackItems)
- func (this *Map) Clear()
- func (this *Map) ContainsKey(key StackItems) bool
- func (this *Map) Equals(that StackItems) bool
- func (this *Map) GetArray() ([]StackItems, error)
- func (this *Map) GetBigInteger() (*big.Int, error)
- func (this *Map) GetBoolean() (bool, error)
- func (this *Map) GetByteArray() ([]byte, error)
- func (this *Map) GetInterface() (interfaces.Interop, error)
- func (this *Map) GetMap() (map[StackItems]StackItems, error)
- func (this *Map) GetStruct() ([]StackItems, error)
- func (this *Map) Remove(key StackItems)
- func (this *Map) TryGetValue(key StackItems) StackItems
- type StackItems
- type Struct
- func (this *Struct) Add(item StackItems)
- func (s *Struct) Clone() (StackItems, error)
- func (this *Struct) Count() int
- func (this *Struct) Equals(other StackItems) bool
- func (s *Struct) GetArray() ([]StackItems, error)
- func (this *Struct) GetBigInteger() (*big.Int, error)
- func (this *Struct) GetBoolean() (bool, error)
- func (this *Struct) GetByteArray() ([]byte, error)
- func (this *Struct) GetInterface() (interfaces.Interop, error)
- func (this *Struct) GetMap() (map[StackItems]StackItems, error)
- func (s *Struct) GetStruct() ([]StackItems, error)
Constants ¶
View Source
const ( ByteArrayType byte = 0x00 BooleanType byte = 0x01 IntegerType byte = 0x02 InterfaceType byte = 0x40 ArrayType byte = 0x80 StructType byte = 0x81 MapType byte = 0x82 )
View Source
const (
MAX_STRCUT_DEPTH = 10
)
Variables ¶
This section is empty.
Functions ¶
func BigIntFromBytes ¶
func BigIntToBytes ¶
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
func NewArray ¶
func NewArray(value []StackItems) *Array
func (*Array) Add ¶
func (this *Array) Add(item StackItems)
func (*Array) Equals ¶
func (this *Array) Equals(other StackItems) bool
func (*Array) GetArray ¶
func (this *Array) GetArray() ([]StackItems, error)
func (*Array) GetBoolean ¶
func (*Array) GetByteArray ¶
func (*Array) GetInterface ¶
func (this *Array) GetInterface() (interfaces.Interop, error)
func (*Array) GetMap ¶
func (this *Array) GetMap() (map[StackItems]StackItems, error)
func (*Array) GetStruct ¶
func (this *Array) GetStruct() ([]StackItems, error)
type Boolean ¶
type Boolean struct {
// contains filtered or unexported fields
}
func NewBoolean ¶
func (*Boolean) Equals ¶
func (this *Boolean) Equals(other StackItems) bool
func (*Boolean) GetArray ¶
func (this *Boolean) GetArray() ([]StackItems, error)
func (*Boolean) GetBoolean ¶
func (*Boolean) GetByteArray ¶
func (*Boolean) GetInterface ¶
func (this *Boolean) GetInterface() (interfaces.Interop, error)
func (*Boolean) GetMap ¶
func (this *Boolean) GetMap() (map[StackItems]StackItems, error)
func (*Boolean) GetStruct ¶
func (this *Boolean) GetStruct() ([]StackItems, error)
type ByteArray ¶
type ByteArray struct {
// contains filtered or unexported fields
}
func NewByteArray ¶
func (*ByteArray) Equals ¶
func (this *ByteArray) Equals(other StackItems) bool
func (*ByteArray) GetArray ¶
func (this *ByteArray) GetArray() ([]StackItems, error)
func (*ByteArray) GetBoolean ¶
func (*ByteArray) GetByteArray ¶
func (*ByteArray) GetInterface ¶
func (this *ByteArray) GetInterface() (interfaces.Interop, error)
func (*ByteArray) GetMap ¶
func (this *ByteArray) GetMap() (map[StackItems]StackItems, error)
func (*ByteArray) GetStruct ¶
func (this *ByteArray) GetStruct() ([]StackItems, error)
type Integer ¶
type Integer struct {
// contains filtered or unexported fields
}
func NewInteger ¶
func (*Integer) Equals ¶
func (this *Integer) Equals(other StackItems) bool
func (*Integer) GetArray ¶
func (this *Integer) GetArray() ([]StackItems, error)
func (*Integer) GetBoolean ¶
func (*Integer) GetByteArray ¶
func (*Integer) GetInterface ¶
func (this *Integer) GetInterface() (interfaces.Interop, error)
func (*Integer) GetMap ¶
func (this *Integer) GetMap() (map[StackItems]StackItems, error)
func (*Integer) GetStruct ¶
func (this *Integer) GetStruct() ([]StackItems, error)
type Interop ¶
type Interop struct {
// contains filtered or unexported fields
}
func NewInteropInterface ¶
func NewInteropInterface(value interfaces.Interop) *Interop
func (*Interop) Equals ¶
func (this *Interop) Equals(other StackItems) bool
func (*Interop) GetArray ¶
func (this *Interop) GetArray() ([]StackItems, error)
func (*Interop) GetBoolean ¶
func (*Interop) GetByteArray ¶
func (*Interop) GetInterface ¶
func (this *Interop) GetInterface() (interfaces.Interop, error)
func (*Interop) GetMap ¶
func (this *Interop) GetMap() (map[StackItems]StackItems, error)
func (*Interop) GetStruct ¶
func (this *Interop) GetStruct() ([]StackItems, error)
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func (*Map) Add ¶
func (this *Map) Add(key StackItems, value StackItems)
func (*Map) ContainsKey ¶
func (this *Map) ContainsKey(key StackItems) bool
func (*Map) Equals ¶
func (this *Map) Equals(that StackItems) bool
func (*Map) GetArray ¶
func (this *Map) GetArray() ([]StackItems, error)
func (*Map) GetBoolean ¶
func (*Map) GetByteArray ¶
func (*Map) GetInterface ¶
func (this *Map) GetInterface() (interfaces.Interop, error)
func (*Map) GetMap ¶
func (this *Map) GetMap() (map[StackItems]StackItems, error)
func (*Map) GetStruct ¶
func (this *Map) GetStruct() ([]StackItems, error)
func (*Map) Remove ¶
func (this *Map) Remove(key StackItems)
func (*Map) TryGetValue ¶
func (this *Map) TryGetValue(key StackItems) StackItems
type StackItems ¶
type StackItems interface { Equals(other StackItems) bool GetBigInteger() (*big.Int, error) GetBoolean() (bool, error) GetByteArray() ([]byte, error) GetInterface() (interfaces.Interop, error) GetArray() ([]StackItems, error) GetStruct() ([]StackItems, error) GetMap() (map[StackItems]StackItems, error) }
type Struct ¶
type Struct struct {
// contains filtered or unexported fields
}
func NewStruct ¶
func NewStruct(value []StackItems) *Struct
func (*Struct) Add ¶
func (this *Struct) Add(item StackItems)
func (*Struct) Clone ¶
func (s *Struct) Clone() (StackItems, error)
func (*Struct) Equals ¶
func (this *Struct) Equals(other StackItems) bool
func (*Struct) GetArray ¶
func (s *Struct) GetArray() ([]StackItems, error)
func (*Struct) GetBoolean ¶
func (*Struct) GetByteArray ¶
func (*Struct) GetInterface ¶
func (this *Struct) GetInterface() (interfaces.Interop, error)
func (*Struct) GetMap ¶
func (this *Struct) GetMap() (map[StackItems]StackItems, error)
func (*Struct) GetStruct ¶
func (s *Struct) GetStruct() ([]StackItems, error)
Click to show internal directories.
Click to hide internal directories.