'Declaration
Public Sub WriteBits( _
ByVal data As System.UInteger, _
ByVal size As System.UInteger _
)
public void WriteBits(
System.uint data,
System.uint size
)
Parameters
data
Data to write.
size
Bits of the data to write.
Remarks
Data is in the form of an unsigned integer. Size indicates how many of the 32 bits are significant and should be output. It checks how many bits are available in the current output byte and works by repeatedly stuffing it with the next bits from 'data' and then adding currentByte to the until all "size" bits have been output.