Performs a bitwise mask read operation.
Returns an integer representation of the corresponding bits specified in the mask.
bitMaskRead(number, start, length)
→ returns numeric
Uses the bitMaskRead function to read each of the corresponding bits specified in the mask
bitMaskRead(3, 0, 1)
Expected Result: 1
Bit shift the mask 2 places
bitMaskRead(10, 2, 1)
Expected Result: 0
bitMaskRead(10, 1, 3)
Expected Result: 5
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.