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 MX, 2nd Edition 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.