Versions in this module Expand all Collapse all v1 v1.0.1 Apr 8, 2022 Changes in this version + type Allocator struct + func New(initialHeap func() []byte, growHeap func() []byte) *Allocator + func (a *Allocator) Allocate(size uintptr) unsafe.Pointer + func (a *Allocator) DeAllocate(p unsafe.Pointer) + func (a *Allocator) Init(initialHeap func() []byte, growHeap func() []byte) + type DefaultMemory struct + func (m *DefaultMemory) Free(ptr *byte) + func (m *DefaultMemory) Malloc(size uintptr) *byte + func (m *DefaultMemory) MallocFromFreed(size uintptr) *byte