Reset the buffer so it can be used again.