Documentation ¶
Index ¶
- type Heap
- func (h *Heap) Clear() error
- func (h *Heap) ReadBytes(ptr int32, length int32) []byte
- func (h *Heap) ReadString(ptr int32, length int32) string
- func (h *Heap) Write(bytes []byte, from string) (int32, error)
- func (h *Heap) WriteAndTrack(bytes []byte, track bool, from string) (int32, error)
- func (h *Heap) WriteAtPtr(bytes []byte, ptr int32, from string) (int32, error)
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heap ¶
type Heap struct {
// contains filtered or unexported fields
}
func NewHeap ¶
func NewHeap(memory *wasmtime.Memory, allocator, dealloc *wasmtime.Func, store *wasmtime.Store) *Heap
func (*Heap) WriteAndTrack ¶
Click to show internal directories.
Click to hide internal directories.