Function defaultFlush [src]
Repeatedly calls VTable.drain until end is zero.
Prototype
pub fn defaultFlush(w: *Writer) Error!void
Parameters
w: *Writer
Possible Errors
See the Writer
implementation for detailed diagnostics.
Source
pub fn defaultFlush(w: *Writer) Error!void {
const drainFn = w.vtable.drain;
while (w.end != 0) _ = try drainFn(w, &.{""}, 1);
}