C# Класс Alexandria.Compression.BitStream

Provides for reading bits from a Stream.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BitCount int
Bits uint
Stream Stream

Открытые методы

Метод Описание
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.

Описание методов

BitStream() публичный метод

Initialise the bitstream with the given stream.
is null.
public BitStream ( Stream stream ) : System
stream Stream The to read from.
Результат System

BooleanLSB() публичный метод

Read a bit in LSB order and return whether it's non-zero.
public BooleanLSB ( ) : bool
Результат bool

BooleanMSB() публичный метод

Read a bit in MSB order and return whether it's non-zero.
public BooleanMSB ( ) : bool
Результат bool

FetchLSB() публичный метод

Fill the bit buffer in LSB order.
public FetchLSB ( ) : void
Результат void

FetchMSB() публичный метод

Fill the bit buffer in MSB order.
public FetchMSB ( ) : void
Результат void

PeekLSB() публичный метод

Peek at the next number of bits in LSB order.
public PeekLSB ( int count ) : int
count int
Результат int

PeekMSB() публичный метод

Peek at the next number of bits in MSB order.
public PeekMSB ( int count ) : int
count int
Результат int

ReadLSB() публичный метод

Read some bits in LSB order.
public ReadLSB ( int count ) : int
count int
Результат int

ReadMSB() публичный метод

Read some bits in MSB order.
public ReadMSB ( int count ) : int
count int
Результат int

ToString() публичный метод

Convert to a string representation of the bit stream.
public ToString ( ) : string
Результат string

Описание свойств

BitCount публичное свойство

Get or set the number of bits that are currently buffered.
public int BitCount
Результат int

Bits публичное свойство

Get or set the buffered bit values.
public uint Bits
Результат uint

Stream публичное свойство

Get the System.IO.Stream to read bytes from.
public Stream Stream
Результат Stream