adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / Bitmask Class / CreateBitmask Method
List of bits to set. Each value must be in the range 0-31.


In This Topic
    CreateBitmask Method
    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 bits() As Integer _
    ) As Integer
    [Pure()]
    public static int CreateBitmask( 
       params int[] bits
    )
    [Pure()]
    public:
    static int CreateBitmask( 
       ... array<int>^ bits
    ) 

    Parameters

    bits
    List of bits to set. Each value must be in the range 0-31.
    Remarks
    BitMask returns a value in which only the specified bits are set (i.e., is 1).
    Example
    BitMask(0)=1 (binary 00000001) BitMask(1)=2 (binary 00000010) BitMask(2)=4 (binary 00000100)
    See Also