pub inline fn appendNTimes(self: *Self, gpa: Allocator, value: T, n: usize) Allocator.Error!void
self: *Self
gpa: Allocator
value: T
n: usize
1201 1202 1203 1204 1205
pub inline fn appendNTimes(self: *Self, gpa: Allocator, value: T, n: usize) Allocator.Error!void { const old_len = self.items.len; try self.resize(gpa, try addOrOom(old_len, n)); @memset(self.items[old_len..self.items.len], value); }