Documentation ¶
Index ¶
- Constants
- func Eq(x, y Value) bool
- func IsValidTupleSizeI64(size int64) bool
- type BasicOperation
- type Buffer
- type CodePointStub
- type CodePointValue
- type HashPreImage
- type ImmediateOperation
- type IntValue
- func (iv IntValue) BigInt() *big.Int
- func (iv IntValue) Clone() Value
- func (iv IntValue) Equal(val Value) bool
- func (iv IntValue) Hash() common.Hash
- func (iv IntValue) Marshal(w io.Writer) error
- func (iv IntValue) Size() int64
- func (iv IntValue) String() string
- func (iv IntValue) ToBytes() [32]byte
- func (iv IntValue) TypeCode() uint8
- type Opcode
- type Operation
- type TupleValue
- func NewEmptyTuple() *TupleValue
- func NewSizedTupleFromReader(rd io.Reader, size byte) (*TupleValue, error)
- func NewTuple2(value1 Value, value2 Value) *TupleValue
- func NewTupleFromSlice(slice []Value) (*TupleValue, error)
- func NewTupleOfSizeWithContents(contents [MaxTupleSize]Value, size int8) (*TupleValue, error)
- type UnmarshalError
- type Value
Constants ¶
View Source
const ( TypeCodeInt uint8 = 0 TypeCodeCodePoint uint8 = 1 TypeCodeHashPreImage uint8 = 2 TypeCodeTuple uint8 = 3 TypeCodeBuffer uint8 = 12 TypeCodeCodePointStub uint8 = 13 )
View Source
const MaxTupleSize = 8
Variables ¶
This section is empty.
Functions ¶
func IsValidTupleSizeI64 ¶
Types ¶
type BasicOperation ¶
type BasicOperation struct {
Op Opcode
}
func NewBasicOperationFromReader ¶
func NewBasicOperationFromReader(rd io.Reader) (BasicOperation, error)
func (BasicOperation) Equals ¶ added in v0.8.0
func (op BasicOperation) Equals(other Operation) bool
func (BasicOperation) GetOp ¶
func (op BasicOperation) GetOp() Opcode
func (BasicOperation) String ¶ added in v0.4.0
func (op BasicOperation) String() string
func (BasicOperation) TypeCode ¶
func (op BasicOperation) TypeCode() uint8
type CodePointStub ¶ added in v0.7.0
type CodePointStub struct { PC uint64 // contains filtered or unexported fields }
func NewCodePointStubFromReader ¶ added in v0.7.0
func NewCodePointStubFromReader(rd io.Reader) (CodePointStub, error)
func (CodePointStub) Clone ¶ added in v0.7.0
func (cp CodePointStub) Clone() Value
func (CodePointStub) Equal ¶ added in v0.7.0
func (cp CodePointStub) Equal(val Value) bool
func (CodePointStub) Hash ¶ added in v0.7.0
func (cp CodePointStub) Hash() common.Hash
func (CodePointStub) Size ¶ added in v0.7.0
func (cp CodePointStub) Size() int64
func (CodePointStub) String ¶ added in v0.7.0
func (cp CodePointStub) String() string
func (CodePointStub) TypeCode ¶ added in v0.7.0
func (cp CodePointStub) TypeCode() uint8
type CodePointValue ¶
func NewCodePointValueFromReader ¶
func NewCodePointValueFromReader(rd io.Reader) (CodePointValue, error)
func (CodePointValue) Equal ¶
func (cv CodePointValue) Equal(val Value) bool
func (CodePointValue) Size ¶
func (cv CodePointValue) Size() int64
func (CodePointValue) String ¶
func (cv CodePointValue) String() string
func (CodePointValue) TypeCode ¶
func (cv CodePointValue) TypeCode() uint8
type HashPreImage ¶ added in v0.6.0
type HashPreImage struct {
// contains filtered or unexported fields
}
func NewHashPreImageFromReader ¶ added in v0.7.0
func NewHashPreImageFromReader(rd io.Reader) (HashPreImage, error)
func NewPreImage ¶ added in v0.7.0
func NewPreImage(hashImage common.Hash, size int64) HashPreImage
func (HashPreImage) Clone ¶ added in v0.7.0
func (hp HashPreImage) Clone() Value
func (HashPreImage) Equal ¶ added in v0.7.0
func (hp HashPreImage) Equal(val Value) bool
func (HashPreImage) GetInnerHash ¶ added in v0.7.0
func (hp HashPreImage) GetInnerHash() common.Hash
func (HashPreImage) Size ¶ added in v0.6.0
func (hp HashPreImage) Size() int64
func (HashPreImage) String ¶ added in v0.7.0
func (hp HashPreImage) String() string
func (HashPreImage) TypeCode ¶ added in v0.7.0
func (hp HashPreImage) TypeCode() uint8
type ImmediateOperation ¶
func NewImmediateOperationFromReader ¶
func NewImmediateOperationFromReader(rd io.Reader) (ImmediateOperation, error)
func (ImmediateOperation) Equals ¶ added in v0.8.0
func (op ImmediateOperation) Equals(other Operation) bool
func (ImmediateOperation) GetOp ¶
func (op ImmediateOperation) GetOp() Opcode
func (ImmediateOperation) String ¶ added in v0.4.0
func (op ImmediateOperation) String() string
func (ImmediateOperation) TypeCode ¶
func (op ImmediateOperation) TypeCode() uint8
type IntValue ¶
type IntValue struct {
// contains filtered or unexported fields
}
func NewInt64Value ¶
func NewIntValue ¶
func NewValueFromAddress ¶ added in v0.6.0
type TupleValue ¶
type TupleValue struct {
// contains filtered or unexported fields
}
func NewEmptyTuple ¶
func NewEmptyTuple() *TupleValue
func NewSizedTupleFromReader ¶
func NewSizedTupleFromReader(rd io.Reader, size byte) (*TupleValue, error)
func NewTuple2 ¶
func NewTuple2(value1 Value, value2 Value) *TupleValue
func NewTupleFromSlice ¶
func NewTupleFromSlice(slice []Value) (*TupleValue, error)
func NewTupleOfSizeWithContents ¶
func NewTupleOfSizeWithContents(contents [MaxTupleSize]Value, size int8) (*TupleValue, error)
func (*TupleValue) Contents ¶
func (tv *TupleValue) Contents() []Value
func (*TupleValue) Equal ¶
func (tv *TupleValue) Equal(val Value) bool
func (*TupleValue) GetByInt64 ¶
func (tv *TupleValue) GetByInt64(idx int64) (Value, error)
func (*TupleValue) Len ¶
func (tv *TupleValue) Len() int64
func (*TupleValue) Size ¶
func (tv *TupleValue) Size() int64
func (*TupleValue) String ¶
func (tv *TupleValue) String() string
func (*TupleValue) TypeCode ¶
func (tv *TupleValue) TypeCode() uint8
type UnmarshalError ¶
type UnmarshalError struct {
// contains filtered or unexported fields
}
func (UnmarshalError) Error ¶
func (e UnmarshalError) Error() string
Click to show internal directories.
Click to hide internal directories.