W3cubDocs

/Symfony 2.7

Symfony\Component\Intl\Data\Util\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

public __construct($size)

Parameters

$size

public offsetExists($key)

{@inheritdoc}

Parameters

$key

public offsetGet($key)

{@inheritdoc}

Parameters

$key

public offsetSet($key, $value)

{@inheritdoc}

Parameters

$key
$value

public offsetUnset($key)

{@inheritdoc}

Parameters

$key

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Intl/Data/Util/RingBuffer.html