Buffer is ringbuffer