C# Class Alexandria.Compression.BitStream

Provides for reading bits from a Stream.
Afficher le fichier Open project: Burton-Radons/Alexandria Class Usage Examples

Méthodes publiques

Свойство Type Description
BitCount int
Bits uint
Stream Stream

Méthodes publiques

Méthode Description
BitStream ( Stream stream ) : System

Initialise the bitstream with the given stream.

BooleanLSB ( ) : bool

Read a bit in LSB order and return whether it's non-zero.

BooleanMSB ( ) : bool

Read a bit in MSB order and return whether it's non-zero.

FetchLSB ( ) : void

Fill the bit buffer in LSB order.

FetchMSB ( ) : void

Fill the bit buffer in MSB order.

PeekLSB ( int count ) : int

Peek at the next number of bits in LSB order.

PeekMSB ( int count ) : int

Peek at the next number of bits in MSB order.

ReadLSB ( int count ) : int

Read some bits in LSB order.

ReadMSB ( int count ) : int

Read some bits in MSB order.

ToString ( ) : string

Convert to a string representation of the bit stream.

Method Details

BitStream() public méthode

Initialise the bitstream with the given stream.
is null.
public BitStream ( Stream stream ) : System
stream Stream The to read from.
Résultat System

BooleanLSB() public méthode

Read a bit in LSB order and return whether it's non-zero.
public BooleanLSB ( ) : bool
Résultat bool

BooleanMSB() public méthode

Read a bit in MSB order and return whether it's non-zero.
public BooleanMSB ( ) : bool
Résultat bool

FetchLSB() public méthode

Fill the bit buffer in LSB order.
public FetchLSB ( ) : void
Résultat void

FetchMSB() public méthode

Fill the bit buffer in MSB order.
public FetchMSB ( ) : void
Résultat void

PeekLSB() public méthode

Peek at the next number of bits in LSB order.
public PeekLSB ( int count ) : int
count int
Résultat int

PeekMSB() public méthode

Peek at the next number of bits in MSB order.
public PeekMSB ( int count ) : int
count int
Résultat int

ReadLSB() public méthode

Read some bits in LSB order.
public ReadLSB ( int count ) : int
count int
Résultat int

ReadMSB() public méthode

Read some bits in MSB order.
public ReadMSB ( int count ) : int
count int
Résultat int

ToString() public méthode

Convert to a string representation of the bit stream.
public ToString ( ) : string
Résultat string

Property Details

BitCount public_oe property

Get or set the number of bits that are currently buffered.
public int BitCount
Résultat int

Bits public_oe property

Get or set the buffered bit values.
public uint Bits
Résultat uint

Stream public_oe property

Get the System.IO.Stream to read bytes from.
public Stream Stream
Résultat Stream