Versions in this module Expand all Collapse all v0 v0.99.3 Jan 3, 2021 v0.99.2 Jan 3, 2021 Changes in this version + var DefaultAllocator = memory.DefaultAllocator + type Allocator struct + Allocator memory.Allocator + Limit *int64 + Manager Manager + func (a *Allocator) Account(size int) error + func (a *Allocator) Allocate(size int) []byte + func (a *Allocator) Allocated() int64 + func (a *Allocator) Free(b []byte) + func (a *Allocator) MaxAllocated() int64 + func (a *Allocator) Reallocate(size int, b []byte) []byte + func (a *Allocator) TotalAllocated() int64 + type LimitExceededError struct + Allocated int64 + Limit int64 + Wanted int64 + func (a LimitExceededError) Error() string + type Manager interface + FreeMemory func(bytes int64) + RequestMemory func(want int64) (got int64, err error)