Function splatBytes [src]
Writes the same slice many times, allowing short writes.
Does maximum of one underlying VTable.drain.
Prototype
pub fn splatBytes(w: *Writer, bytes: []const u8, n: usize) Error!usize
Parameters
w: *Writer
bytes: []const u8
n: usize
Possible Errors
See the Writer
implementation for detailed diagnostics.
Source
pub fn splatBytes(w: *Writer, bytes: []const u8, n: usize) Error!usize {
return writeSplat(w, &.{bytes}, n);
}