pub fn writeAll(w: *Writer, bytes: []const u8) Error!void
Transfers bytes to the stream, calling drain as many times as necessary such that all bytes are transferred.
bytes
drain
See also:
print
writeVecAll
write
w: *Writer
bytes: []const u8
WriteFailed
See the Writer implementation for detailed diagnostics.
Writer
625 626 627 628
pub fn writeAll(w: *Writer, bytes: []const u8) Error!void { var index: usize = 0; while (index < bytes.len) index += try w.write(bytes[index..]); }
Transfers
bytesto the stream, callingdrainas many times as necessary such that allbytesare transferred.See also:
printwriteVecAllwrite