BitMaskSet
Performs a bitwise mask set operation.
Method Signature
Arguments
Argument
Type
Required
Description
Default
number
integer
true
Numeric value for the bitwise mask set.
mask
integer
true
Numeric value for the mask.
start
integer
true
Start bit for the set mask (Integer in the range 0-31, inclusive).
length
integer
true
Length of bits in the set mask (Integer in the range 0-31, inclusive).
Examples
Bitwise Mask Set
Performs masking operation on each of the corresponding bits
Result: 7
Using non zero start parameter
Bit shift the mask 2 places
Result: 14
Using non zero mask start and length parameters
Result: 12
Additional Examples
Related
Last updated
Was this helpful?