pub fn writeStreamingAll(file: File, io: Io, bytes: []const u8) Writer.Error!void 620
621
622
623
624
625pub fn writeStreamingAll(file: File, io: Io, bytes: []const u8) Writer.Error!void {
var index: usize = 0;
while (index < bytes.len) {
index += try writeStreaming(file, io, &.{}, &.{bytes[index..]}, 1);
}
}
Equivalent to creating a streaming writer, writing
bytes, and then flushing.