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: *Writerbytes: []const u8n: usize

Possible Errors

WriteFailed

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); }