RingBuffer
class RingBuffer implements ArrayAccess
Implements a ring buffer.
A ring buffer is an array-like structure with a fixed size. If the buffer is full, the next written element overwrites the first bucket in the buffer, then the second and so on.
Methods
__construct($size)
No description
offsetExists($key)
{@inheritdoc}
offsetGet($key)
{@inheritdoc}
offsetSet($key, $value)
{@inheritdoc}
offsetUnset($key)
{@inheritdoc}
Details
at line line 37
__construct($size)
at line line 45
offsetExists($key)
{@inheritdoc}
at line line 53
offsetGet($key)
{@inheritdoc}
at line line 68
offsetSet($key, $value)
{@inheritdoc}
at line line 83
offsetUnset($key)
{@inheritdoc}