C# Class OxyPlot.ByteBitReader

The byte bit reader.
Inheritance: OxyPlot.BitReader, IDisposable
Afficher le fichier Open project: andreasjacobsen93/XamarinThirdpartySamples

Méthodes publiques

Méthode 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 méthode

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

Close() public méthode

Closes this stream and the underlying InputStream.
public Close ( ) : void
Résultat void

GetBitPosition() public méthode

Gets the bit position.
public GetBitPosition ( ) : int
Résultat int

Read() public méthode

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
Résultat int

ReadByte() public méthode

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

ReadNoEof() public méthode

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
Résultat int