Appearance
SetFlag Method
Definition
- Namespace:
JASE.Extensions - Assembly:
JASE.Primitives.dll
long SetFlag(long value, int flag, int maxFlag = null)
csharp
long SetFlag(long value, int flag, int maxFlag = null)Set a flag (turn the bit on)
Parameters
| Name | Description |
|---|---|
flag | The zero-based position of the flag to set |
maxFlag | The maximum flag value to use (Default: 63) |
value | The current bitmask value |
Returns
The updated bitmask value with the flag set