mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
@@ -14,6 +14,10 @@ pub const MutableString = struct {
|
||||
};
|
||||
}
|
||||
|
||||
pub fn deinit(str: *MutableString) void {
|
||||
str.list.deinit(str.allocator);
|
||||
}
|
||||
|
||||
pub fn growIfNeeded(self: *MutableString, amount: usize) !void {
|
||||
try self.list.ensureUnusedCapacity(self.allocator, amount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user