feature. See also
. The project being documented here (as the example) is the Zig library itself.
Allocator.allocWithOptions
pub fn allocWithOptions(
self: Allocator,
comptime Elem: type,
n: usize,
comptime optional_alignment: ?Alignment,
comptime optional_sentinel: ?Elem,
) Error!AllocWithOptionsPayload(Elem, optional_alignment, optional_sentinel)
File
Code
pub fn allocWithOptions(
self: Allocator,
comptime Elem: type,
n: usize,
comptime optional_alignment: ?Alignment,
comptime optional_sentinel: ?Elem,
) Error!AllocWithOptionsPayload(Elem, optional_alignment, optional_sentinel) {
return self.allocWithOptionsRetAddr(Elem, n, optional_alignment, optional_sentinel, @returnAddress());
}