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

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

공개 메소드들

메소드 설명
BitStreamWriter ( ) : System

Initializes a new instance of the BitStreamWriter class.

BitStreamWriter ( Stream stream ) : System

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

BitStreamWriter ( Stream stream, bool leaveOpen ) : System

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

Read ( byte buffer, int offset, int count ) : int

When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

ReadBoolean ( ) : bool

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

ReadByte ( ) : int

Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.

Seek ( long offset, SeekOrigin origin ) : long

When overridden in a derived class, sets the position within the current stream.

SetLength ( long value ) : void

When overridden in a derived class, sets the length of the current stream.

Write ( bool value ) : void

Writes a bit to the stream.

Write ( byte buffer, int offset, int count ) : void

When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

WriteByte ( byte value ) : void

Writes a byte to the current position in the stream and advances the position within the stream by one byte.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Flushes the buffer and optionally closes the base stream.

메소드 상세

BitStreamWriter() 공개 메소드

Initializes a new instance of the BitStreamWriter class.
public BitStreamWriter ( ) : System
리턴 System

BitStreamWriter() 공개 메소드

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

BitStreamWriter() 공개 메소드

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

Dispose() 보호된 메소드

Flushes the buffer and optionally closes the base stream.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Read() 공개 메소드

When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
리턴 int

ReadBoolean() 공개 메소드

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

ReadByte() 공개 메소드

Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
public ReadByte ( ) : int
리턴 int

Seek() 공개 메소드

When overridden in a derived class, sets the position within the current stream.
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
리턴 long

SetLength() 공개 메소드

When overridden in a derived class, sets the length of the current stream.
public SetLength ( long value ) : void
value long /// The desired length of the current stream in bytes. ///
리턴 void

Write() 공개 메소드

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

Write() 공개 메소드

When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
리턴 void

WriteByte() 공개 메소드

Writes a byte to the current position in the stream and advances the position within the stream by one byte.
public WriteByte ( byte value ) : void
value byte /// The byte to write to the stream. ///
리턴 void