3.1.1.1.3.6 BitstringLookup

Returns the next n bits from the front of a bit string.

Parameters

  • inout BITSTRING bstr: The bit string.

  • in LONG n: The number of bits to return.

Return Value

A ULONG that stores the n bits at the front of the bit string.

Algorithm

 if n = 0
     return 0
 else
     return bstr.mask >> (32 – n)
 endif