RingBuffer.clear

void clear() @safe nothrow @nogc

Reset the buffer to empty without releasing storage.

The ring buffer retains its capacity and backing memory; only the read/write positions and used count are reset.