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) | ||
| offsetExists($key) {@inheritdoc} | ||
| offsetGet($key) {@inheritdoc} | ||
| offsetSet($key, $value) {@inheritdoc} | ||
| offsetUnset($key) {@inheritdoc} |
Details
__construct($size)
Parameters
| $size |
offsetExists($key)
{@inheritdoc}
Parameters
| $key |
offsetGet($key)
{@inheritdoc}
Parameters
| $key |
offsetSet($key, $value)
{@inheritdoc}
Parameters
| $key | ||
| $value |
offsetUnset($key)
{@inheritdoc}
Parameters
| $key |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Intl/ResourceBundle/Util/RingBuffer.html