In This Topic
Gets a bitmask with a specified bit set.
BitMask returns a value in which only the specified bits are set (i.e., is 1). List of bits to set. Each value must be in the range 0-31.
BitMask(0)=1 (binary 00000001) BitMask(1)=2 (binary 00000010) BitMask(2)=4 (binary 00000100)
Syntax
'Declaration
<PureAttribute()>
Public Shared Function CreateBitmask( _
ByVal ParamArray () As Integer _
) As Integer
[Pure()]
public static int CreateBitmask(
params int[]
)
[Pure()]
public:
static int CreateBitmask(
... array<int>^
)
Parameters
- bits
- List of bits to set. Each value must be in the range 0-31.
Example
BitMask(0)=1 (binary 00000001)
BitMask(1)=2 (binary 00000010)
BitMask(2)=4 (binary 00000100)
See Also