Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: RT.ArithmeticCoding.ArithmeticCodingWriterStream

Summary

Provides a write-only stream which encodes the bytes written using arithmetic coding.

Constructors

ArithmeticCodingWriterStream(Stream outputStream, uint[] frequencies)
Initialises an ArithmeticCodingWriterStream instance given an output stream and a set of byte frequencies. (see also remarks)

Instance methods

void
  • Overrides: Stream.Close()
Finalizes the encoding and closes the output stream.
void
Close(bool closeOutputStream = true)
Finalizes and closes the stream. One last symbol is encoded into the stream, so make sure a suitable symbol context is applied.
void
  • Overrides: Stream.Flush()
Throws NotSupportedException.
int
Read(byte[] buffer, int offset, int count)
  • Overrides: Stream.Read(byte[], int, int)
long
Seek(long offset, SeekOrigin origin)
  • Overrides: Stream.Seek(long, SeekOrigin)
void Changes the symbol context. See Remarks. (see also remarks)
void
SetLength(long value)
  • Overrides: Stream.SetLength(long)
Throws NotSupportedException.
void
Write(byte[] buffer, int offset, int count)
  • Overrides: Stream.Write(byte[], int, int)
Encodes the bytes in the specified section of the buffer.
void
WriteByte(byte value)
  • Overrides: Stream.WriteByte(byte)
Encodes the specified byte.

Instance properties

bool
  • Overrides: Stream.CanRead
Returns false.
bool
  • Overrides: Stream.CanSeek
bool
  • Overrides: Stream.CanWrite
Returns true.
long
  • Overrides: Stream.Length
Throws NotSupportedException.
long
  • Overrides: Stream.Position