3.1.1.1.3.7 BitstreamSkip

Advances the bit string's cursor by n bits.

Parameters

  • inout BITSTRING bstr: The bit string.

  • in LONG n: The number of bits that the bit string's cursor will be advanced.

Return Value

None.

Algorithm

 bstr.mask := bstr.mask << n
 bstr.bits := bstr.bits – n
 if bstr.bits < 16
     bstr.mask := bstr.mask + 
         ((16 bits starting at bstr.source[bstr.index] as a USHORT) << 
          (16 – bstr.bits))
     bstr.index := bstr.index + 2
     bstr.bits := bstr.bits + 16
 endif