BITMASKSET | |
Description
Performs a bitwise mask set operation. |
|
Returns
A number, bitwise masked with length bits of mask beginning at start. |
|
Category
Mathematical functions |
|
Function syntaxBitMaskSet(number, mask, start, length) |
|
See also
BitMaskClear, BitMaskRead |
|
Parameters
|
|
Usage
Bit functions operate on 32-bit signed integers, in the range -2147483648 - 2147483647. |
|
Example<h3>BitMaskSet Example</h3> <p>Returns number bitwise masked with length bits of mask beginning at start. <p>BitMaskSet(255, 255, 4, 4): <cfoutput>#BitMaskSet(255, 255, 4, 4)#</cfoutput> <p>BitMaskSet(255, 0, 4, 4): <cfoutput>#BitMaskSet(255, 0, 4, 4)#</cfoutput> <p>BitMaskSet(0, 15, 4, 4): <cfoutput>#BitMaskSet(0, 15, 4, 4)#</cfoutput> |
NUMBER | |
MASK | |
START | |
LENGTH | |