BitMaskRead

Description

Returns the integer created from length bits of number beginning from start.

Category

Mathematical functions

Syntax


BitMaskRead(number, start, length) 

See also

BitMaskClear, BitMaskSet

Parameters

Parameter
Description
number
32-bit signed integer to mask
start
32-bit signed integer; the starting bit for reading
length
32-bit signed integer; the length of mask

Usage

Bit functions operate on 32-bit signed integers, in the range -2147483648 to 2147483647.

Example

<!--- This example shows BitMaskRead --->

<html>

<head>

<title>BitMaskRead Example</title>

</head>



<body>

<H3>BitMaskRead Example</H3>



<P>Returns integer created from length bits of

number beginning with start.



<P>BitMaskRead(255, 4, 4): <cfoutput>#BitMaskRead(255, 4, 4)#

</cfoutput>

<P>BitMaskRead(255, 0, 4): <cfoutput>#BitMaskRead(255, 0, 4)#

</cfoutput>

<P>BitMaskRead(128, 0, 7): <cfoutput>#BitMaskRead(128, 0, 7)#

</cfoutput>



</body>

</html>    



Banner.Novgorod.Ru