3.1.1.1.3.5 BitstringInit

Initializes a BITSTRING data structure.

Parameters

  • inout BITSTRING bstr: The bit string to initialize.

  • in UCHAR source: The byte array that is the backing store for the bit string.

  • in ULONG index: The index in source at which the bit string starts.

Return Value

None.

Algorithm

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