authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-26 03:04:37 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-26 03:04:37 -07:00
logb9568c921e71bbd554bf2697e086c5c8bb79bb61
tree4a24b389fecb9991f328c6fce0fe7cca74e4e87d
parentdd568a92c67a23bd1f64051deac876ddefd1c1de
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

AllocatingWriter: make these pub actually


1 files changed, 2 insertions(+), 2 deletions(-)

allocating_writer.zig+2-2
......@@ -51,11 +51,11 @@ pub const AllocatingWriter = struct {
5151 self.capacity = new_capacity;
5252 }
5353
54 fn unusedSlice(self: *AllocatingWriter) []u8 {
54 pub fn unusedSlice(self: *AllocatingWriter) []u8 {
5555 return self.allocatedSlice()[self.items.len..];
5656 }
5757
58 fn appendAssumeCapacity(self: *AllocatingWriter, bytes: []const u8) void {
58 pub fn appendAssumeCapacity(self: *AllocatingWriter, bytes: []const u8) void {
5959 @memcpy(self.unusedSlice()[0..bytes.len], bytes);
6060 self.items.len += bytes.len;
6161 }