Table of Contents

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

outStream Stream

CBZip2OutputStream(Stream, int)

public CBZip2OutputStream(Stream outStream, int blockSize)

Parameters

outStream Stream
blockSize int

Fields

CLEARMASK

protected const int CLEARMASK = -2097153

Field Value

int

DEPTH_THRESH

protected const int DEPTH_THRESH = 10

Field Value

int

GREATER_ICOST

protected const int GREATER_ICOST = 15

Field Value

int

LESSER_ICOST

protected const int LESSER_ICOST = 0

Field Value

int

SETMASK

protected const int SETMASK = 2097152

Field Value

int

SMALL_THRESH

protected const int SMALL_THRESH = 20

Field Value

int

Methods

Detach(bool)

protected void Detach(bool disposing)

Parameters

disposing bool

Dispose(bool)

Releases the unmanaged resources used by the Stream and optionally releases the managed resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true 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

len byte[]
freq int[]
alphaSize int
maxLen int

WriteByte(byte)

public override void WriteByte(byte value)

Parameters

value byte