Class CBZip2OutputStream
- Namespace
- Org.BouncyCastle.Utilities.Bzip2
- Assembly
- BouncyCastle.Cryptography.dll
public class CBZip2OutputStream : BaseOutputStream, IAsyncDisposable, IDisposable
- Inheritance
-
CBZip2OutputStream
- Implements
- Derived
- Inherited Members
Constructors
CBZip2OutputStream(Stream)
public CBZip2OutputStream(Stream outStream)
Parameters
outStreamStream
CBZip2OutputStream(Stream, int)
public CBZip2OutputStream(Stream outStream, int blockSize)
Parameters
Fields
CLEARMASK
protected const int CLEARMASK = -2097153
Field Value
DEPTH_THRESH
protected const int DEPTH_THRESH = 10
Field Value
GREATER_ICOST
protected const int GREATER_ICOST = 15
Field Value
LESSER_ICOST
protected const int LESSER_ICOST = 0
Field Value
SETMASK
protected const int SETMASK = 2097152
Field Value
SMALL_THRESH
protected const int SMALL_THRESH = 20
Field Value
Methods
Detach(bool)
protected void Detach(bool disposing)
Parameters
disposingbool
Dispose(bool)
Releases the unmanaged resources used by the Stream and optionally releases the managed resources.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
Finish()
public void Finish()
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 override void Flush()
Exceptions
- IOException
An I/O error occurs.
HbMakeCodeLengths(byte[], int[], int, int)
protected static void HbMakeCodeLengths(byte[] len, int[] freq, int alphaSize, int maxLen)
Parameters
WriteByte(byte)
public override void WriteByte(byte value)
Parameters
valuebyte