clear

fun clear()

Clears all elements from the buffer and resets its state.