pub fn appendRemaining(
r: *Reader,
gpa: Allocator,
list: *ArrayList(u8),
limit: Limit,
) LimitedAllocError!void 351
352
353
354
355
356
357
358pub fn appendRemaining(
r: *Reader,
gpa: Allocator,
list: *ArrayList(u8),
limit: Limit,
) LimitedAllocError!void {
return appendRemainingAligned(r, gpa, .of(u8), list, limit);
}
Transfers all bytes from the current position to the end of the stream, up to
limit, appending them tolist.If
limitis reached or exceeded,error.StreamTooLongis returned instead. In such case, the next byte that would be read will be the first one to exceedlimit, and all preceeding bytes have been appended tolist.See also:
allocRemaining