Narrow a value based on a bit mask. Basically all the bits in the value that
are in the bit mask are squezed into a value. Example if the bit mask is 1011
and the value is 1000 then it will return 0100. (because there is a gap in the bit
mask so it shifts it over one.
Declaration Syntax
C# | Visual Basic | Visual C++ |
protected internal long NarrowFromBitMask( long BitMask, long Value )
Protected Friend Function NarrowFromBitMask ( _ BitMask As Long, _ Value As Long _ ) As Long
protected public: long long NarrowFromBitMask( long long BitMask, long long Value )
Parameters
- BitMask (Int64)
- The bit mask to use
- Value (Int64)
- Value to narrow on
Return Value
Returns the narrowed value