Documentation ¶
Index ¶
- Constants
- func BuildResultFromNeo(item VmValue, bf *common.ZeroCopySink) error
- type ArrayValue
- type IntValue
- func (self IntValue) Abs() (val IntValue)
- func (self IntValue) Add(other IntValue) (IntValue, error)
- func (self IntValue) And(other IntValue) (IntValue, error)
- func (self IntValue) Cmp(other IntValue) int
- func (self IntValue) Div(other IntValue) (IntValue, error)
- func (self *IntValue) IsZero() bool
- func (self IntValue) Lsh(other IntValue) (result IntValue, err error)
- func (self IntValue) Max(other IntValue) (IntValue, error)
- func (self IntValue) Min(other IntValue) (IntValue, error)
- func (self IntValue) Mod(other IntValue) (IntValue, error)
- func (self IntValue) Mul(other IntValue) (IntValue, error)
- func (self IntValue) Not() (val IntValue)
- func (self IntValue) Or(other IntValue) (IntValue, error)
- func (self IntValue) Rsh(other IntValue) (result IntValue, err error)
- func (self *IntValue) Sign() int
- func (self IntValue) Sub(other IntValue) (IntValue, error)
- func (self *IntValue) ToNeoBytes() []byte
- func (self IntValue) Xor(other IntValue) (IntValue, error)
- type InteropValue
- type MapValue
- func (this *MapValue) Get(key VmValue) (value VmValue, ok bool, err error)
- func (this *MapValue) GetMapSortedKey() []VmValue
- func (this *MapValue) GetValues() ([]VmValue, error)
- func (this *MapValue) Remove(key VmValue) error
- func (this *MapValue) Reset()
- func (this *MapValue) Set(key, value VmValue) error
- type StructValue
- type VmValue
- func NewMapVmValue() VmValue
- func VmValueFromArrayVal(array *ArrayValue) VmValue
- func VmValueFromBigInt(val *big.Int) (result VmValue, err error)
- func VmValueFromBool(val bool) VmValue
- func VmValueFromBytes(val []byte) (result VmValue, err error)
- func VmValueFromInt64(val int64) VmValue
- func VmValueFromIntValue(val IntValue) VmValue
- func VmValueFromInteropValue(val InteropValue) VmValue
- func VmValueFromMapValue(val *MapValue) VmValue
- func VmValueFromStructVal(val *StructValue) VmValue
- func VmValueFromUint64(val uint64) VmValue
- func (self *VmValue) AsArrayValue() (*ArrayValue, error)
- func (self *VmValue) AsBigInt() (*big.Int, error)
- func (self *VmValue) AsBool() (bool, error)
- func (self *VmValue) AsBytes() ([]byte, error)
- func (self *VmValue) AsInt64() (int64, error)
- func (self *VmValue) AsIntValue() (IntValue, error)
- func (self *VmValue) AsInteropValue() (InteropValue, error)
- func (self *VmValue) AsMapValue() (*MapValue, error)
- func (self *VmValue) AsStructValue() (*StructValue, error)
- func (self *VmValue) BuildParamToNative(sink *common.ZeroCopySink) error
- func (self *VmValue) CircularRefAndDepthDetection() (bool, error)
- func (self *VmValue) ConvertNeoVmValueHexString() (interface{}, error)
- func (self *VmValue) Deserialize(source *common.ZeroCopySource) error
- func (self *VmValue) Dump() string
- func (self *VmValue) Equals(other VmValue) bool
- func (self *VmValue) GetMapKey() (string, error)
- func (self *VmValue) GetType() byte
- func (self *VmValue) Serialize(sink *common.ZeroCopySink) error
- func (self *VmValue) Stringify() (string, error)
Constants ¶
View Source
const ( MAX_COUNT = 1024 MAX_NOTIFY_LENGTH = 64 * 1024 //64Kb )
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_STRUCT_DEPTH = 10 MAX_CLONE_LENGTH = 1024 )
Variables ¶
This section is empty.
Functions ¶
func BuildResultFromNeo ¶
func BuildResultFromNeo(item VmValue, bf *common.ZeroCopySink) error
encode the neovm return vmval transform neovm contract result to encoded byte array
Types ¶
type ArrayValue ¶
type ArrayValue struct {
Data []VmValue
}
func NewArrayValue ¶
func NewArrayValue() *ArrayValue
func (*ArrayValue) Append ¶
func (self *ArrayValue) Append(item VmValue) error
func (*ArrayValue) Len ¶
func (self *ArrayValue) Len() int64
func (*ArrayValue) RemoveAt ¶
func (self *ArrayValue) RemoveAt(index int64) error
type IntValue ¶
type IntValue struct {
// contains filtered or unexported fields
}
func IntValFromInt ¶
func IntValFromNeoBytes ¶
func (*IntValue) ToNeoBytes ¶
type InteropValue ¶
type InteropValue struct {
Data interfaces.Interop
}
func NewInteropValue ¶
func NewInteropValue(value interfaces.Interop) InteropValue
func (*InteropValue) Equals ¶
func (this *InteropValue) Equals(other InteropValue) bool
type StructValue ¶
type StructValue struct {
Data []VmValue
}
struct value is value type
func NewStructValue ¶
func NewStructValue() *StructValue
func (*StructValue) Append ¶
func (self *StructValue) Append(item VmValue) error
func (*StructValue) Clone ¶
func (self *StructValue) Clone() (*StructValue, error)
func (*StructValue) Len ¶
func (self *StructValue) Len() int64
type VmValue ¶
type VmValue struct {
// contains filtered or unexported fields
}
func NewMapVmValue ¶
func NewMapVmValue() VmValue
func VmValueFromArrayVal ¶
func VmValueFromArrayVal(array *ArrayValue) VmValue
func VmValueFromBool ¶
func VmValueFromBytes ¶
func VmValueFromInt64 ¶
func VmValueFromIntValue ¶
func VmValueFromInteropValue ¶
func VmValueFromInteropValue(val InteropValue) VmValue
func VmValueFromMapValue ¶
func VmValueFromStructVal ¶
func VmValueFromStructVal(val *StructValue) VmValue
func VmValueFromUint64 ¶
func (*VmValue) AsArrayValue ¶
func (self *VmValue) AsArrayValue() (*ArrayValue, error)
func (*VmValue) AsIntValue ¶
func (*VmValue) AsInteropValue ¶
func (self *VmValue) AsInteropValue() (InteropValue, error)
func (*VmValue) AsMapValue ¶
func (*VmValue) AsStructValue ¶
func (self *VmValue) AsStructValue() (*StructValue, error)
func (*VmValue) BuildParamToNative ¶
func (self *VmValue) BuildParamToNative(sink *common.ZeroCopySink) error
func (*VmValue) CircularRefAndDepthDetection ¶
func (*VmValue) ConvertNeoVmValueHexString ¶
func (*VmValue) Deserialize ¶
func (self *VmValue) Deserialize(source *common.ZeroCopySource) error
Click to show internal directories.
Click to hide internal directories.