282
BitMaskClear
Returns number bitwise cleared with length bits beginning from start.
See also
Syntax
BitMaskClear( number , start , length )
number
Long integer to be masked.
start
Integer specifying the starting bit for masking.
length
Integer specifying the length of mask.
Usage
Parameters start and length must be in the range from 0 to 31.
Bit functions operate on 32-bit integers.
Examples
<!--- This example shows BitMaskClear --->
<HTML>
<HEAD>
<TITLE>BitMaskClear Example</TITLE>
</HEAD>
<BODY>
<H3>BitMaskClear Example</H3>
<P>Returns number bitwise cleared with
length bits beginning from start.
<P>BitMaskClear(255, 4, 4): <CFOUTPUT>#BitMaskClear(255, 4, 4)#
</CFOUTPUT>
<P>BitMaskClear(255, 0, 4): <CFOUTPUT>#BitMaskClear(255, 0, 4)#
</CFOUTPUT>
<P>BitMaskClear(128, 0, 7): <CFOUTPUT>#BitMaskClear(128, 0, 7)#
</CFOUTPUT>
</BODY>
</HTML>
BitMaskRead
and BitMaskSet.
CFML Language Reference
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers