Constructor
new CircularBuffer(size)
Parameters:
Name | Type | Description |
---|---|---|
size |
Number | The size of the buffer. |
- Source:
Methods
read() → {*}
Returns the next value from the buffer.
- Source:
Returns:
- Type
- *
write(val)
Writes a value into the next slot in the buffer.
Parameters:
Name | Type | Description |
---|---|---|
val |
* | The value to write into the buffer. |
- Source: