StreamManipulator.GetBits Method

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

StreamManipulator.GetBits Method 

Gets the next n bits and increases input pointer. This is equivalent to PeekBits followed by DropBits, except for correct error handling.

public int GetBits(
   int bitCount
);

Parameters

bitCount
The number of bits to retrieve.

Return Value

the value of the bits, or -1 if not enough bits available.

See Also

StreamManipulator Class | ICSharpCode.SharpZipLib.Zip.Compression.Streams Namespace