spasm.rt.allocator

Members

Aliases

Destructor
alias Destructor = void function(void*)
Undocumented in source.
WasmAllocator
alias WasmAllocator = Mallocator
Undocumented in source.

Enums

MarkResult
enum MarkResult
Undocumented in source.

Functions

alignedAt
bool alignedAt(T* ptr, uint alignment)

Returns true if ptr is aligned at alignment.

getGoodCapacity
auto getGoodCapacity(uint blockSize)
Undocumented in source. Be warned that the author may not have intended to support it.
initPool
auto initPool(size_t blockSize, size_t capacity)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

poolAllocatorIndex
auto poolAllocatorIndex;
Undocumented in source.

Structs

PoolAllocator
struct PoolAllocator
Undocumented in source.
PoolAllocatorBacking
struct PoolAllocatorBacking
Undocumented in source.
PoolAllocatorFactory
struct PoolAllocatorFactory
Undocumented in source.
PoolAllocatorIndex
struct PoolAllocatorIndex
Undocumented in source.
PoolAllocatorList
struct PoolAllocatorList(T)
Undocumented in source.
PoolAllocatorList
struct PoolAllocatorList(size_t blockSize)
Undocumented in source.
WasmAllocator
struct WasmAllocator
Undocumented in source.
WasmAllocator
struct WasmAllocator
Undocumented in source.

Meta