| ... | @@ -308,7 +308,7 @@ pub fn appendRemaining( | ... | @@ -308,7 +308,7 @@ pub fn appendRemaining( |
| 308 | list: *ArrayList(u8), | 308 | list: *ArrayList(u8), |
| 309 | limit: Limit, | 309 | limit: Limit, |
| 310 | ) LimitedAllocError!void { | 310 | ) LimitedAllocError!void { |
| 311 | var a: std.Io.Writer.Allocating = .initOwnedSlice(gpa, list.items); | 311 | var a: std.Io.Writer.Allocating = .initOwnedSlice(gpa, list.allocatedSlice()); |
| 312 | a.writer.end = list.items.len; | 312 | a.writer.end = list.items.len; |
| 313 | list.* = .empty; | 313 | list.* = .empty; |
| 314 | defer { | 314 | defer { |
| ... | @@ -332,7 +332,7 @@ pub fn appendRemaining( | ... | @@ -332,7 +332,7 @@ pub fn appendRemaining( |
| 332 | pub const UnlimitedAllocError = Allocator.Error || ShortError; | 332 | pub const UnlimitedAllocError = Allocator.Error || ShortError; |
| 333 | | 333 | |
| 334 | pub fn appendRemainingUnlimited(r: *Reader, gpa: Allocator, list: *ArrayList(u8)) UnlimitedAllocError!void { | 334 | pub fn appendRemainingUnlimited(r: *Reader, gpa: Allocator, list: *ArrayList(u8)) UnlimitedAllocError!void { |
| 335 | var a: std.Io.Writer.Allocating = .initOwnedSlice(gpa, list.items); | 335 | var a: std.Io.Writer.Allocating = .initOwnedSlice(gpa, list.allocatedSlice()); |
| 336 | a.writer.end = list.items.len; | 336 | a.writer.end = list.items.len; |
| 337 | list.* = .empty; | 337 | list.* = .empty; |
| 338 | defer { | 338 | defer { |