pub fn ensureTotalCapacityContext(self: *Self, allocator: Allocator, new_size: Size, ctx: Context) Allocator.Error!void
self: *Self
allocator: Allocator
new_size: Size
ctx: Context
746 747 748 749 750 751
pub fn ensureTotalCapacityContext(self: *Self, allocator: Allocator, new_size: Size, ctx: Context) Allocator.Error!void { self.pointer_stability.lock(); defer self.pointer_stability.unlock(); if (new_size > self.size) try self.growIfNeeded(allocator, new_size - self.size, ctx); }