datatype

package
v0.0.0-...-e920dd0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

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

func NewArray

func NewArray(value []StackItem) *Array

func (*Array) Equals

func (a *Array) Equals(other StackItem) bool

func (*Array) GetArray

func (a *Array) GetArray() []StackItem

func (*Array) GetBigInteger

func (a *Array) GetBigInteger() *big.Int

func (*Array) GetBoolean

func (a *Array) GetBoolean() bool

func (*Array) GetByteArray

func (a *Array) GetByteArray() []byte

func (*Array) GetInterface

func (a *Array) GetInterface() interfaces.IGeneralInterface

func (*Array) GetMap

func (a *Array) GetMap() map[StackItem]StackItem

func (*Array) Reverse

func (a *Array) Reverse()

func (*Array) String

func (a *Array) String() string

type Boolean

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

func NewBoolean

func NewBoolean(value bool) *Boolean

func (*Boolean) Equals

func (b *Boolean) Equals(other StackItem) bool

func (*Boolean) GetArray

func (b *Boolean) GetArray() []StackItem

func (*Boolean) GetBigInteger

func (b *Boolean) GetBigInteger() *big.Int

func (*Boolean) GetBoolean

func (b *Boolean) GetBoolean() bool

func (*Boolean) GetByteArray

func (b *Boolean) GetByteArray() []byte

func (*Boolean) GetInterface

func (b *Boolean) GetInterface() interfaces.IGeneralInterface

func (*Boolean) GetMap

func (a *Boolean) GetMap() map[StackItem]StackItem

func (*Boolean) String

func (a *Boolean) String() string

type ByteArray

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

func NewByteArray

func NewByteArray(value []byte) *ByteArray

func (*ByteArray) Bytes

func (ba *ByteArray) Bytes() []byte

func (*ByteArray) Equals

func (ba *ByteArray) Equals(other StackItem) bool

func (*ByteArray) GetArray

func (ba *ByteArray) GetArray() []StackItem

func (*ByteArray) GetBigInteger

func (ba *ByteArray) GetBigInteger() *big.Int

func (*ByteArray) GetBoolean

func (ba *ByteArray) GetBoolean() bool

func (*ByteArray) GetByteArray

func (ba *ByteArray) GetByteArray() []byte

func (*ByteArray) GetInterface

func (ba *ByteArray) GetInterface() interfaces.IGeneralInterface

func (*ByteArray) GetMap

func (ba *ByteArray) GetMap() map[StackItem]StackItem

func (*ByteArray) String

func (ba *ByteArray) String() string

type Dictionary

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

func NewDictionary

func NewDictionary() *Dictionary

func (*Dictionary) Equals

func (dic *Dictionary) Equals(other StackItem) bool

func (*Dictionary) GetArray

func (dic *Dictionary) GetArray() []StackItem

func (*Dictionary) GetBigInteger

func (dic *Dictionary) GetBigInteger() *big.Int

func (*Dictionary) GetBoolean

func (dic *Dictionary) GetBoolean() bool

func (*Dictionary) GetByteArray

func (dic *Dictionary) GetByteArray() []byte

func (*Dictionary) GetInterface

func (dic *Dictionary) GetInterface() interfaces.IGeneralInterface

func (*Dictionary) GetKeys

func (dic *Dictionary) GetKeys() *Array

func (*Dictionary) GetMap

func (dic *Dictionary) GetMap() map[StackItem]StackItem

func (*Dictionary) GetValue

func (dic *Dictionary) GetValue(key StackItem) StackItem

func (*Dictionary) GetValues

func (dic *Dictionary) GetValues() *Array

func (*Dictionary) PutStackItem

func (dic *Dictionary) PutStackItem(key, value StackItem)

func (*Dictionary) Remove

func (dic *Dictionary) Remove(key StackItem)

func (*Dictionary) String

func (dic *Dictionary) String() string

type GeneralInterface

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

func NewGeneralInterface

func NewGeneralInterface(value interfaces.IGeneralInterface) *GeneralInterface

func (*GeneralInterface) Equals

func (ii *GeneralInterface) Equals(other StackItem) bool

func (*GeneralInterface) GetArray

func (ii *GeneralInterface) GetArray() []StackItem

func (*GeneralInterface) GetBigInteger

func (ii *GeneralInterface) GetBigInteger() *big.Int

func (*GeneralInterface) GetBoolean

func (ii *GeneralInterface) GetBoolean() bool

func (*GeneralInterface) GetByteArray

func (ii *GeneralInterface) GetByteArray() []byte

func (*GeneralInterface) GetInterface

func (ii *GeneralInterface) GetInterface() interfaces.IGeneralInterface

func (*GeneralInterface) GetMap

func (ii *GeneralInterface) GetMap() map[StackItem]StackItem

func (*GeneralInterface) String

func (ii *GeneralInterface) String() string

type Integer

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

func NewInteger

func NewInteger(value *big.Int) *Integer

func (*Integer) Equals

func (i *Integer) Equals(other StackItem) bool

func (*Integer) GetArray

func (i *Integer) GetArray() []StackItem

func (*Integer) GetBigInteger

func (i *Integer) GetBigInteger() *big.Int

func (*Integer) GetBoolean

func (i *Integer) GetBoolean() bool

func (*Integer) GetByteArray

func (i *Integer) GetByteArray() []byte

func (*Integer) GetInterface

func (i *Integer) GetInterface() interfaces.IGeneralInterface

func (*Integer) GetMap

func (i *Integer) GetMap() map[StackItem]StackItem

func (*Integer) String

func (i *Integer) String() string

type StackItem

type StackItem interface {
	Equals(other StackItem) bool
	GetBigInteger() *big.Int
	GetBoolean() bool
	GetByteArray() []byte
	GetInterface() interfaces.IGeneralInterface
	GetArray() []StackItem
	GetMap() map[StackItem]StackItem
	String() string
}

type StackItemType

type StackItemType byte
const (
	TYPE_ByteArray        StackItemType = iota
	TYPE_Boolean          StackItemType = 0x01
	TYPE_Integer          StackItemType = 0x02
	TYPE_InteropInterface StackItemType = 0x40
	TYPE_Array            StackItemType = 0x80
	TYPE_Struct           StackItemType = 0x81
	TYPE_Map              StackItemType = 0x82
)

Jump to

Keyboard shortcuts

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