UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

103 lines (47 loc) 1.16 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [ECircularStackOverflowMode](./rc-js-util.ecircularstackoverflowmode.md) ## ECircularStackOverflowMode enum Sets the behavior of [CircularFIFOStack](./rc-js-util.circularfifostack.md) when a value is pushed which won't fit. **Signature:** ```typescript export declare enum ECircularStackOverflowMode ``` ## Enumeration Members <table><thead><tr><th> Member </th><th> Value </th><th> Description </th></tr></thead> <tbody><tr><td> Exception </td><td> `2` </td><td> Throw an error if the buffer overflows. </td></tr> <tr><td> Grow </td><td> `4` </td><td> Doubles the stack size and copies in place, running in O(size). </td></tr> <tr><td> NoOp </td><td> `1` </td><td> Do nothing. </td></tr> <tr><td> Overwrite </td><td> `3` </td><td> Overwrite the first value. </td></tr> </tbody></table> ## Remarks Does not affect underflow, which is always considered exceptional.