BitMaskRead()
Performs a bitwise mask read operation.
Returns an integer, created from length bits of number, beginning at start.
BitMaskRead( number=number, start=number, length=number );
Returns: Number
Examples
The following code example will output an example numbers returned from the bitMaskRead() function.
writeOutput(bitMaskRead(255, 5, 5))
writeOutput("<br>")
writeOutput(bitMaskRead(255, 0, 4))
See also
- Math
- Numbers
- numeric.bitMaskRead()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)