Writes file reading file content from reader. Reads exactly size bytes
from reader, or returns error.EndOfStream.
pub fn writeFileStream(
w: *Writer,
/// Assumed to use `/` for any path separators.
sub_path: []const u8,
size: u64,
reader: *Io.Reader,
options: Options,
) WriteFileStreamError!void
pub fn writeFileStream(
w: *Writer,
/// Assumed to use `/` for any path separators.
sub_path: []const u8,
size: u64,
reader: *Io.Reader,
options: Options,
) WriteFileStreamError!void {
try w.writeHeader(.regular, sub_path, "", size, options);
try reader.streamExact64(w.underlying_writer, size);
try w.writePadding64(size);
}