C# 클래스 Gammtek.Conduit.IO.BitStream

Stream class for writing individual bits to a stream. Packs subsequent bytes written to the stream.
상속: Stream
파일 보기 프로젝트 열기: ME3Explorer/ME3Explorer 1 사용 예제들

공개 메소드들

메소드 설명
Flush ( ) : void

When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.

ReadBoolean ( ) : bool

Reads the a boolean as a single bit from the stream.

Write ( bool value ) : void

Writes a bit to the stream.

보호된 메소드들

메소드 설명
BitStream ( ) : System

Initializes a new instance of the BitStream class.

BitStream ( Stream stream ) : System

Initializes a new instance of the BitStream class with backing stream. The stream will be automatically closed when this stream is closed.

BitStream ( Stream stream, bool leaveOpen ) : System

Initializes a new instance of the BitStream class with backing stream. The stream will be closed only if leaveOpen is false.

Dispose ( bool disposing ) : void

Disposes the base stream if set and leaveOpen is false.

InternalFlushBuffer ( bool flushAllBits ) : void

Flushes the internal buffer to disk.

메소드 상세

BitStream() 보호된 메소드

Initializes a new instance of the BitStream class.
protected BitStream ( ) : System
리턴 System

BitStream() 보호된 메소드

Initializes a new instance of the BitStream class with backing stream. The stream will be automatically closed when this stream is closed.
protected BitStream ( Stream stream ) : System
stream Stream
리턴 System

BitStream() 보호된 메소드

Initializes a new instance of the BitStream class with backing stream. The stream will be closed only if leaveOpen is false.
protected BitStream ( Stream stream, bool leaveOpen ) : System
stream Stream
leaveOpen bool
리턴 System

Dispose() 보호된 메소드

Disposes the base stream if set and leaveOpen is false.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Flush() 공개 메소드

When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.
public Flush ( ) : void
리턴 void

InternalFlushBuffer() 보호된 메소드

Flushes the internal buffer to disk.
protected InternalFlushBuffer ( bool flushAllBits ) : void
flushAllBits bool
리턴 void

ReadBoolean() 공개 추상적인 메소드

Reads the a boolean as a single bit from the stream.
public abstract ReadBoolean ( ) : bool
리턴 bool

Write() 공개 추상적인 메소드

Writes a bit to the stream.
public abstract Write ( bool value ) : void
value bool
리턴 void