BitwiseOverflowAction
in package
BitOverflowAction specifies the action to take when bitwise add/subtract results in overflow/underflow.
Table of Contents
Methods
- Fail() : BitwiseOverflowAction
- BitOverflowActionFail specifies to fail operation with error.
- Saturate() : BitwiseOverflowAction
- BitOverflowActionSaturate specifies that in add/subtract overflows/underflows, set to max/min value.
- Wrap() : BitwiseOverflowAction
- BitOverflowActionWrap specifies that in add/subtract overflows/underflows, wrap the value.
Methods
Fail()
BitOverflowActionFail specifies to fail operation with error.
public
static Fail() : BitwiseOverflowAction
Return values
BitwiseOverflowActionSaturate()
BitOverflowActionSaturate specifies that in add/subtract overflows/underflows, set to max/min value.
public
static Saturate() : BitwiseOverflowAction
Example: MAXINT + 1 = MAXINT
Return values
BitwiseOverflowActionWrap()
BitOverflowActionWrap specifies that in add/subtract overflows/underflows, wrap the value.
public
static Wrap() : BitwiseOverflowAction
Example: MAXINT + 1 = -1