StreamManipulator.PeekBits Method

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

StreamManipulator.PeekBits Method 

Get the next sequence of bits but don't increase input pointer. bitCount must be less or equal 16 and if this call succeeds, you must drop at least n - 8 bits in the next call.

public int PeekBits(
   int bitCount
);

Parameters

bitCount
The number of bits to peek.

Return Value

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

See Also

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