| ... | ... | @@ -242,7 +242,7 @@ pub fn Readable(T: type, this_kind: enum { _var, _const, _bare }) type { |
| 242 | 242 | }; |
| 243 | 243 | } |
| 244 | 244 | |
| 245 | | pub fn skipBytes(self: Self, num_bytes: u64, comptime options: struct { buf_size: usize = 512 }) anyerror!void { |
| 245 | pub fn skipBytes(self: Self, num_bytes: u64, comptime options: struct { buf_size: usize = 512 }) !void { |
| 246 | 246 | var buf: [options.buf_size]u8 = undefined; |
| 247 | 247 | var remaining = num_bytes; |
| 248 | 248 | while (remaining > 0) { |
| ... | ... | @@ -252,7 +252,7 @@ pub fn Readable(T: type, this_kind: enum { _var, _const, _bare }) type { |
| 252 | 252 | } |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | | pub fn skipUntilDelimiterOrEof(self: Self, delimiter: u8) anyerror!void { |
| 255 | pub fn skipUntilDelimiterOrEof(self: Self, delimiter: u8) !void { |
| 256 | 256 | while (true) { |
| 257 | 257 | const byte = self.readByte() catch |err| switch (err) { |
| 258 | 258 | error.EndOfStream => return, |