| ... | ... | @@ -51,11 +51,11 @@ pub const AllocatingWriter = struct { |
| 51 | 51 | self.capacity = new_capacity; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | | fn unusedSlice(self: *AllocatingWriter) []u8 { |
| 54 | pub fn unusedSlice(self: *AllocatingWriter) []u8 { |
| 55 | 55 | return self.allocatedSlice()[self.items.len..]; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | | fn appendAssumeCapacity(self: *AllocatingWriter, bytes: []const u8) void { |
| 58 | pub fn appendAssumeCapacity(self: *AllocatingWriter, bytes: []const u8) void { |
| 59 | 59 | @memcpy(self.unusedSlice()[0..bytes.len], bytes); |
| 60 | 60 | self.items.len += bytes.len; |
| 61 | 61 | } |