Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: RT.ArithmeticCoding.ArithmeticCodingReaderStream

Summary

Provides a read-only stream which decodes data that was encoded using ArithmeticCodingWriterStream.

Constructors

ArithmeticCodingReaderStream(Stream inputStream, uint[] frequencies)
Initialises an ArithmeticCodingReaderStream instance given an input stream and a set of byte frequencies.

Instance methods

void
  • Overrides: Stream.Close()
Finalizes the decoding and closes the input stream. This method must be called if you intend to read additional data from the input stream, but it is optional otherwise. Disposing of this stream closes it automatically.
void
Close(bool closeBaseStream = true)
Finalizes the decoding and optionally closes the input stream. This method must be called if you intend to read additional data from the input stream, but it is optional otherwise.
void
  • Overrides: Stream.Flush()
Throws NotSupportedException.
int
Read(byte[] buffer, int offset, int count)
  • Overrides: Stream.Read(byte[], int, int)
Decodes no more than count bytes into the specified buffer, populating the array from offset onwards.
int
  • Overrides: Stream.ReadByte()
Decodes the next byte from the input stream. Returns -1 if there are no more bytes to be decoded.
long
Seek(long offset, SeekOrigin origin)
  • Overrides: Stream.Seek(long, SeekOrigin)
Throws NotSupportedException.
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)

Instance properties

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