Versions in this module Expand all Collapse all v0 v0.9.0 Mar 1, 2024 v0.8.0 Dec 11, 2023 Changes in this version + const Aligment + const HeaderSize + const MaxPossibleAllocations + const MaxWasmPages + const MinPossibleAllocations + const NilMarker + const NumOrders + const PageSize + var ErrAllocatorOutOfSpace = errors.New("allocator out of space") + var ErrAllocatorPoisoned = errors.New("allocator poisoned") + var ErrCannotGrowLinearMemory = errors.New("cannot grow linear memory") + var ErrCannotReadHeader = errors.New("cannot read header") + var ErrCannotWriteHeader = errors.New("cannot write header") + var ErrEmptyHeader = errors.New("allocation points to an empty header") + var ErrInvalidHeaderPointerDetected = errors.New("invalid header pointer detected") + var ErrInvalidOrder = errors.New("invalid order") + var ErrInvalidPointerForDealocation = errors.New("invalid pointer for deallocation") + var ErrMemoryShrunk = errors.New("memory shrunk") + var ErrRequestedAllocationTooLarge = errors.New("requested allocation too large") + type AllocationStats struct + type Free struct + type FreeLists struct + func NewFreeLists() *FreeLists + type FreeingBumpHeapAllocator struct + func NewFreeingBumpHeapAllocator(heapBase uint32) *FreeingBumpHeapAllocator + func (f *FreeingBumpHeapAllocator) Allocate(mem runtime.Memory, size uint32) (ptr uint32, err error) + func (f *FreeingBumpHeapAllocator) Deallocate(mem runtime.Memory, ptr uint32) (err error) + type Header interface + type Link interface + type Nil struct + type Occupied struct + type Order uint32 + type Ptr struct