pub fn defaultFlush(w: *Writer) Error!void
Repeatedly calls VTable.drain until end is zero.
VTable.drain
end
w: *Writer
WriteFailed
See the Writer implementation for detailed diagnostics.
Writer
392 393 394 395
pub fn defaultFlush(w: *Writer) Error!void { const drainFn = w.vtable.drain; while (w.end != 0) _ = try drainFn(w, &.{""}, 1); }
Repeatedly calls
VTable.drainuntilendis zero.