Documentation
¶
Index ¶
- Constants
- Variables
- type CallFunc
- type Data
- type Memory
- func (m *Memory) Cost() uint64
- func (m *Memory) Data() []byte
- func (m *Memory) GetPtr(offset, size uint64) []byte
- func (m *Memory) GetVal(offset, size uint64) []byte
- func (m *Memory) Len() int
- func (m *Memory) Print()
- func (m *Memory) Resize(size uint64)
- func (m *Memory) Set(offset uint64, value byte)
- func (m *Memory) Set8(offset uint64, value []byte)
- func (m *Memory) Sets(offset, size uint64, value []byte)
- type Stack
Constants ¶
View Source
const ( // PTRSIZE is size of arguments pointer PTRSIZE = 8 // SIZEPTRSIZE is size of arguments size pointer SIZEPTRSIZE = 8 )
Variables ¶
View Source
var ErrInvalidData = errors.New("Invalid data")
View Source
var ErrInvalidMemory = errors.New("Invalid memory reference")
View Source
var ErrInvalidOpcode = errors.New("invalid opcode")
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
Stack is an object for basic Stack operations. Items popped to the Stack are expected not to be changed and modified.
Click to show internal directories.
Click to hide internal directories.