65 lines
1.1 KiB
YAML
65 lines
1.1 KiB
YAML
name: RingBuffer
|
|
class_comment: '# * 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.
|
|
|
|
# *
|
|
|
|
# * @author Bernhard Schussek <bschussek@gmail.com>
|
|
|
|
# *
|
|
|
|
# * @template TKey of array-key
|
|
|
|
# * @template TValue
|
|
|
|
# *
|
|
|
|
# * @implements \ArrayAccess<TKey, TValue>
|
|
|
|
# *
|
|
|
|
# * @internal'
|
|
dependencies:
|
|
- name: OutOfBoundsException
|
|
type: class
|
|
source: Symfony\Component\Intl\Exception\OutOfBoundsException
|
|
properties: []
|
|
methods:
|
|
- name: __construct
|
|
visibility: public
|
|
parameters:
|
|
- name: size
|
|
comment: null
|
|
- name: offsetExists
|
|
visibility: public
|
|
parameters:
|
|
- name: key
|
|
comment: null
|
|
- name: offsetGet
|
|
visibility: public
|
|
parameters:
|
|
- name: key
|
|
comment: null
|
|
- name: offsetSet
|
|
visibility: public
|
|
parameters:
|
|
- name: key
|
|
- name: value
|
|
comment: null
|
|
- name: offsetUnset
|
|
visibility: public
|
|
parameters:
|
|
- name: key
|
|
comment: null
|
|
traits:
|
|
- Symfony\Component\Intl\Exception\OutOfBoundsException
|
|
interfaces:
|
|
- \ArrayAccess
|
|
- \ArrayAccess
|