Module nix_wasm.memory

Memory allocators for WASM builtins.

Provides a bump-pointer Region allocator modelled after std.experimental.allocator.building_blocks.region.

See Also

WasmAllocator, newWasmAllocator

Functions

NameDescription
newWasmAllocator() Creates a fresh WasmAllocator backed by a function-local static arena in WASM linear memory.

Structs

NameDescription
Region Bump-pointer region allocator for WASM, modelled after std.experimental.allocator.building_blocks.region.Region.

Aliases

NameTypeDescription
WasmAllocator Region!(8) Default allocator type — 8-byte aligned bump region.