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