Programming Search⌘K

std.mem.Allocator

The entries of std.mem.Allocator in the Zig reference. This page has 32 cards.

std.mem.Allocator.realloc

pub fn realloc(self: Allocator, old_mem: anytype, new_n: usize) Error!Slice(AbsorbSentinel(@TypeOf(old_mem)))

This function requests a new size for an existing allocation, which can be larger, smaller, or the same size as the old memory allocation.

Kind
function
Module
std.mem.Allocator

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.