Functions
fn alignPageAllocLen(full_len: usize, len: usize) usize
Verifies that the adjusted length will still map to the full length
fn logToWriterAllocator(parent_allocator: Allocator, writer: anytype) LogToWriterAllocator(@TypeOf(writer))
No documentation provided.
fn loggingAllocator(parent_allocator: Allocator) LoggingAllocator(.debug, .err)
No documentation provided.
fn stackFallback(comptime size: usize, fallback_allocator: Allocator) StackFallbackAllocator(size)
Returns a
StackFallbackAllocator
allocating using either a `FixedBufferAlloca…Returns a
StackFallbackAllocator
allocating using either aFixedBufferAllocator
on an array of sizesize
and falling back tofallback_allocator
if that fails.fn testAllocator(base_allocator: mem.Allocator) !void
This one should not try alignments that exceed what C malloc can handle.
Values
HeapAllocator | type | |
ThreadSafeFixedBufferAllocator | undefined | |
c_allocator | Allocator | Supports the full Allocator interface, including alignment, and exploiting `mal… |
page_allocator | type | This allocator makes a syscall directly for every allocation and free. Thread-s… |
raw_c_allocator | Allocator | Asserts allocations are within |
wasm_allocator | Allocator | This allocator is fast, small, and specific to WebAssembly. In the future, this… |