Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: ArithmeticCodingWriter(Stream, uint[])

Declaration

public ArithmeticCodingWriter(
    Stream stream,
    uint[] frequencies
)

Summary

Initialises an ArithmeticCodingWriter instance. See Remarks.

Parameters

Streamstream The stream to which the encoded data will be written.
uint[]frequencies The frequency of each symbol occurring. When reading the data back using an ArithmeticCodingReader, the set of frequencies must be exactly the same.

Remarks

The encoded data will not be complete until the writer is finalized using ArithmeticCodingWriter.Finalize(bool).