Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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.
|
protected BitStream ( Stream stream ) : System | ||
stream | Stream | |
return | System |
protected BitStream ( Stream stream, bool leaveOpen ) : System | ||
stream | Stream | |
leaveOpen | bool | |
return | System |
protected InternalFlushBuffer ( bool flushAllBits ) : void | ||
flushAllBits | bool | |
return | void |