adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / Bitmask Class / HasBit Method
The value to test.
The bit (0 - 31) to test.


In This Topic
    HasBit Method
    In This Topic
    Tests whether a specified bit is set in a bitmask.
    Syntax
    'Declaration
     
    
    <PureAttribute()>
    Public Shared Function HasBit( _
       ByVal val As Integer, _
       ByVal bit As Integer _
    ) As Boolean
    [Pure()]
    public static bool HasBit( 
       int val,
       int bit
    )
    [Pure()]
    public:
    static bool HasBit( 
       int val,
       int bit
    ) 

    Parameters

    val
    The value to test.
    bit
    The bit (0 - 31) to test.
    See Also