fn ValidationAllocator(comptime T: type) type

Detects and asserts if the std.mem.Allocator interface is violated by the caller or the allocator.

Parameters

T: type,

Fields

underlying_allocator: T,

Functions

fn alloc(ctx: *anyopaque, n: usize, log2_ptr_align: u8, ret_addr: usize) ?[*]u8

No documentation provided.

fn allocator(self: *Self) Allocator

No documentation provided.

fn free(ctx: *anyopaque, buf: []u8, log2_buf_align: u8, ret_addr: usize) void

No documentation provided.

fn init(underlying_allocator: T) @This()

No documentation provided.

fn reset(self: *Self) void

No documentation provided.

fn resize(ctx: *anyopaque, buf: []u8, log2_buf_align: u8, new_len: usize, ret_addr: usize) bool

No documentation provided.