C# Class OxyPlot.ByteBitReader

The byte bit reader.
Inheritance: OxyPlot.BitReader, IDisposable
Exibir arquivo Open project: andreasjacobsen93/XamarinThirdpartySamples

Public Methods

Method Description
ByteBitReader ( Stream s ) : System

Initializes a new instance of the ByteBitReader class.

Close ( ) : void

Closes this stream and the underlying InputStream.

GetBitPosition ( ) : int

Gets the bit position.

Read ( ) : int

Reads a bit from the stream. Returns 0 or 1 if a bit is available, or -1 if the end of stream is reached. The end of stream always occurs on a byte boundary.

ReadByte ( ) : int

Discards the remainder of the current byte and reads the next byte from the stream.

ReadNoEof ( ) : int

Reads a bit from the stream. Returns 0 or 1 if a bit is available, or throws an EOFException if the end of stream is reached.

Method Details

ByteBitReader() public method

Initializes a new instance of the ByteBitReader class.
Argument is null
public ByteBitReader ( Stream s ) : System
s Stream The arguments.
return System

Close() public method

Closes this stream and the underlying InputStream.
public Close ( ) : void
return void

GetBitPosition() public method

Gets the bit position.
public GetBitPosition ( ) : int
return int

Read() public method

Reads a bit from the stream. Returns 0 or 1 if a bit is available, or -1 if the end of stream is reached. The end of stream always occurs on a byte boundary.
public Read ( ) : int
return int

ReadByte() public method

Discards the remainder of the current byte and reads the next byte from the stream.
public ReadByte ( ) : int
return int

ReadNoEof() public method

Reads a bit from the stream. Returns 0 or 1 if a bit is available, or throws an EOFException if the end of stream is reached.
public ReadNoEof ( ) : int
return int