C# 클래스 Alexandria.Compression.BitStream

Provides for reading bits from a Stream.
파일 보기 프로젝트 열기: Burton-Radons/Alexandria 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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