Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: ArithmeticCodingWriterStream(Stream, ArithmeticSymbolContext)

Declaration

public ArithmeticCodingWriterStream(
    Stream outputStream,
    ArithmeticSymbolContext context
)

Summary

Initialises an ArithmeticCodingWriterStream instance given an output stream and a set of byte frequencies.

Parameters

StreamoutputStream The output stream to which the encoded data will be written.
ArithmeticSymbolContextcontext The context used for determining the relative frequencies of input bytes. The caller may make changes to the context instance it passed in; such changes will take effect immediately. See also ArithmeticCodingWriterStream.SetContext(ArithmeticSymbolContext).

Remarks

The encoded data will not be complete until the stream is closed using ArithmeticCodingWriterStream.Close().