std.heap.ArenaAllocator
- Kind
- struct
- Module
std.heap
Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The entries of std.heap in the Zig reference. This page has 23 cards.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Supports single-threaded WebAssembly and Linux.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
A wrapper around the C memory allocation API which supports the full `Allocator` interface, including arbitrary alignment.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn defaultQueryPageSize() usize
The default implementation of `std.options.queryPageSize`.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn MemoryPool(comptime Item: type) type
A memory pool that can allocate objects of a single type very quickly.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
On operating systems that support memory mapping, this allocator makes a syscall directly for every allocation and free.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
comptime-known maximum page size of the target.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
comptime-known minimum page size of the target.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn pageSize() usize
If the page size is comptime-known, return value is comptime.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn testAllocator(base_allocator: mem.Allocator) !void
This one should not try alignments that exceed what C malloc can handle.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn testAllocatorAligned(base_allocator: mem.Allocator) !void
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn testAllocatorAlignedShrink(base_allocator: mem.Allocator) !void
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn testAllocatorLargeAlignment(base_allocator: mem.Allocator) !void
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
This allocator is fast, small, and specific to WebAssembly.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.heapSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.