Get the place (0 based) in the mask that the current TestBit
is at. Example, if bit mask is 0x0A and test bit is 3 then
return 1. This is because 0x0A = 0000 1010 and bit 3 (0x08)
is set to true and is in place 1 (0 based).
| C# | Visual Basic | Visual C++ |
protected internal int GetPlaceInMask( long BitMask, int TestBit )
Protected Friend Function GetPlaceInMask ( _ BitMask As Long, _ TestBit As Integer _ ) As Integer
protected public: int GetPlaceInMask( long long BitMask, int TestBit )
- BitMask (Int64)
- Bit mask to look in.
- TestBit (Int32)
- Test bit (0 based)
0th based place of the bit.
| Exception | Condition |
|---|---|
| ImplementationException | Thrown if the TestBit
is not 1 in the BitMask. |