js-util

Home > rc-js-util > ECircularStackOverflowMode

ECircularStackOverflowMode enum

Sets the behavior of CircularFIFOStack when a value is pushed which won’t fit.

Signature:

export declare enum ECircularStackOverflowMode 

Enumeration Members

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.

Remarks

Does not affect underflow, which is always considered exceptional.