| ... | ... | @@ -990,9 +990,9 @@ pub fn discardDelimiterLimit(r: *Reader, delimiter: u8, limit: Limit) DiscardDel |
| 990 | 990 | /// Returns `error.EndOfStream` if and only if there are fewer than `n` bytes |
| 991 | 991 | /// remaining. |
| 992 | 992 | /// |
| 993 | | /// Asserts buffer capacity is at least `n`. |
| 993 | /// If the end of stream is not encountered, asserts buffer capacity is at |
| 994 | /// least `n`. |
| 994 | 995 | pub fn fill(r: *Reader, n: usize) Error!void { |
| 995 | | assert(n <= r.buffer.len); |
| 996 | 996 | if (r.seek + n <= r.end) { |
| 997 | 997 | @branchHint(.likely); |
| 998 | 998 | return; |