Ensure the buffer is empty.