BitMaskSet
Performs a bitwise mask set operation.
Method Signature
BitMaskSet(number=[long], mask=[long], start=[integer], length=[integer])Arguments
Argument
Type
Required
Description
Default
number
long
true
64-bit signed integer value for the bitwise mask set.
mask
long
true
64-bit signed integer 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
bitMaskSet( 6, 1, 0, 1 );
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?
