| author | |
| committer | |
| log | 0ab8ae944cd2b48c783c4ca8963997b6af207d5e |
| tree | fb470e0ccae78334d7a7655dc30292aaca7f56a8 |
| parent | 3468872d8376602fdbfdb5b0d6d582c278ad1990 |
1 files changed, 2 insertions(+), 1 deletions(-)
lib/std/io/reader.zig+2-1| ... | ... | @@ -271,8 +271,9 @@ pub fn Reader( |
| 271 | 271 | buf_size: usize = 512, |
| 272 | 272 | }; |
| 273 | 273 | |
| 274 | // `num_bytes` is a `u64` to match `off_t` | |
| 274 | 275 | /// Reads `num_bytes` bytes from the stream and discards them |
| 275 | pub fn skipBytes(self: Self, num_bytes: usize, comptime options: SkipBytesOptions) !void { | |
| 276 | pub fn skipBytes(self: Self, num_bytes: u64, comptime options: SkipBytesOptions) !void { | |
| 276 | 277 | var buf: [options.buf_size]u8 = undefined; |
| 277 | 278 | var remaining = num_bytes; |
| 278 | 279 |