| ... | ... | @@ -499,6 +499,14 @@ pub fn setTimestampsNow(file: File, io: Io) SetTimestampsError!void { |
| 499 | 499 | return io.vtable.fileSetTimestampsNow(io.userdata, file); |
| 500 | 500 | } |
| 501 | 501 | |
| 502 | /// Returns 0 on stream end or if `buffer` has no space available for data. |
| 503 | /// |
| 504 | /// See also: |
| 505 | /// * `reader` |
| 506 | pub fn readStreaming(file: File, io: Io, buffer: []const []u8) Reader.Error!usize { |
| 507 | return io.vtable.fileReadStreaming(io.userdata, file, buffer); |
| 508 | } |
| 509 | |
| 502 | 510 | pub const ReadPositionalError = Reader.Error || error{Unseekable}; |
| 503 | 511 | |
| 504 | 512 | /// Returns 0 on stream end or if `buffer` has no space available for data. |