extremely close!!!!!

Former-commit-id: 44fce3c5e8
This commit is contained in:
Jarred Sumner
2021-06-14 01:49:53 -07:00
parent c51c65325f
commit 122ef023dd
20 changed files with 1316 additions and 196 deletions

View File

@@ -23,6 +23,11 @@ pub const MutableString = struct {
try self.list.ensureUnusedCapacity(self.allocator, amount);
}
pub fn write(self: *MutableString, bytes: anytype) !usize {
try self.list.appendSlice(self.allocator, bytes);
return bytes.len;
}
pub fn writeAll(self: *MutableString, bytes: string) !usize {
try self.list.appendSlice(self.allocator, bytes);
return self.list.items.len;