StreamManipulator.GetBits Method

SharpZip Compression Library

SharpZip Compression 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 n
);

Return Value

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

See Also

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