C# Класс Gammtek.Conduit.IO.BitStream

Stream class for writing individual bits to a stream. Packs subsequent bytes written to the stream.
Наследование: Stream
Показать файл Открыть проект Примеры использования класса

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

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