- Source:
A buffer implementation that never discards buffered items when a new item is added.
This buffer has a concept of full, but it's a soft limit. If the size of the buffer is exceeded, added items are
still stored. full returns true
any time that the size is
reached or exceeded, so it's entirely possible to call remove on a
full buffer and have it still be full.
Extends
Members
(readonly) full :number
- Source:
Whether or not the buffer has as many or more items stored as its size.
Type:
- number
Methods
add(…items)
- Source:
Adds one or more items to the buffer. These items will be added even if the buffer is full.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
items |
* |
<repeatable> |
The items to be added to the buffer. |