DoxigAlpha

ensureUnusedCapacity

Modify the array so that it can hold at least additional_count more items. Invalidates pointers if additional memory is needed.

Function parameters

Parameters

#
self:*Self
additional_count:usize

A MultiArrayList stores a list of a struct or tagged union type.

Functions

#
MultiArrayList
A MultiArrayList stores a list of a struct or tagged union type.

Source

Implementation

#
pub fn ensureUnusedCapacity(self: *Self, gpa: Allocator, additional_count: usize) !void {
    return self.ensureTotalCapacity(gpa, self.len + additional_count);
}