Function ensureTotalCapacity [src]
Prototype
pub fn ensureTotalCapacity(self: *@This(), bit_capacity: usize) Allocator.Error!void
Parameters
self: *@This()
bit_capacity: usize
Source
pub fn ensureTotalCapacity(self: *@This(), bit_capacity: usize) Allocator.Error!void {
const byte_capacity = (bit_capacity + 7) >> 3;
try self.bytes.ensureTotalCapacity(byte_capacity);
}