Home > rc-js-util > ECircularStackOverflowMode
Sets the behavior of CircularFIFOStack when a value is pushed which won’t fit.
Signature:
export declare enum ECircularStackOverflowMode
| Member | Value | Description |
|---|---|---|
| Exception | 2 |
Throw an error if the buffer overflows. |
| Grow | 4 |
Doubles the stack size and copies in place, running in O(size). |
| NoOp | 1 |
Do nothing. |
| Overwrite | 3 |
Overwrite the first value. |
Does not affect underflow, which is always considered exceptional.