Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: ArithmeticCodingWriterStream(Stream, uint[])

Declaration

public ArithmeticCodingWriterStream(
    Stream outputStream,
    uint[] frequencies
)

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.
uint[]frequencies The frequency of each byte occurring, plus the frequency of the end of stream symbol (written automatically when the stream is closed). Must be 257 elements long. When reading the data back using an ArithmeticCodingReaderStream, the set of frequencies must be exactly the same.

Remarks

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