Versions in this module Expand all Collapse all v0 v0.12.0 Dec 27, 2022 Changes in this version + type Allocator interface + Alloc func() P + Free func(ptr P) + Reset func() + type BumpAlloc struct + func NewBumpAlloc() *BumpAlloc[T] + func (a *BumpAlloc[T]) Reset() + func (alloc *BumpAlloc[T]) Free(p RawPtr) + func (ba *BumpAlloc[T]) Alloc() RawPtr + type NativeAlloc struct + func NewNativeAlloc() (alloc NativeAlloc[T]) + func (NativeAlloc[T]) Alloc() UnsafePtr + func (NativeAlloc[T]) Free(p UnsafePtr) + func (NativeAlloc[T]) Reset() + type PoolAlloc struct + func NewPoolAllocator(allocNew func() any) *PoolAlloc[T] + func (a *PoolAlloc[T]) Alloc() UnsafePtr + func (a *PoolAlloc[T]) Free(p UnsafePtr) + func (a *PoolAlloc[T]) Reset() + type Ptr interface + Equals func(other Self) bool + IsNull func() bool + Load func() unsafe.Pointer + type RawPtr uintptr + func (p RawPtr) Equals(o RawPtr) bool + func (p RawPtr) IsNull() bool + func (p RawPtr) Load() unsafe.Pointer + type SizedAlloc uintptr + func NewSizedAlloc(size uintptr) SizedAlloc + func (SizedAlloc) Free(p UnsafePtr) + func (SizedAlloc) Reset() + func (a SizedAlloc) Alloc() UnsafePtr + type UnsafePtr struct + Addr unsafe.Pointer + func (p UnsafePtr) Equals(o UnsafePtr) bool + func (p UnsafePtr) IsNull() bool + func (p UnsafePtr) Load() unsafe.Pointer