Function BufferedIO.reset

Forget all pending writes

void reset () pure nothrow @nogc @safe;

This causes the BufferedIO to discard all unflushed write data. Cached read data is unaffected.