| ... | @@ -271,8 +271,9 @@ pub fn Reader( | ... | @@ -271,8 +271,9 @@ pub fn Reader( |
| 271 | buf_size: usize = 512, | 271 | buf_size: usize = 512, |
| 272 | }; | 272 | }; |
| 273 | | 273 | |
| | 274 | // `num_bytes` is a `u64` to match `off_t` |
| 274 | /// Reads `num_bytes` bytes from the stream and discards them | 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 | var buf: [options.buf_size]u8 = undefined; | 277 | var buf: [options.buf_size]u8 = undefined; |
| 277 | var remaining = num_bytes; | 278 | var remaining = num_bytes; |
| 278 | | 279 | |