Name
BitMaskRead
Synopsis
BitMaskRead(number, startbit, length
)
Returns the integer from length
bits of
number
beginning from the bit specified by
startbit
. Examples:
<CFOUTPUT> BitMaskRead(127,0,1): #BitMaskRead(127,0,1)#<BR> BitMaskRead(255,3,3): #BitMaskRead(255,3,3)#<BR> BitMaskRead(511,2,4): #BitMaskRead(511,2,4)#<BR> BitMaskRead(1023,4,25): #BitMaskRead(1023,4,25)#<BR> BitMaskRead(2047,7,4): #BitMaskRead(2047,7,4)# </CFOUTPUT>
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.