A class in Alta.Serialization.Runtime, Alta.Serialization.
A dummy Stream that reads and writes at once but stores nothing. Code passes Compressor.Instance to the quantizing serialize helpers to round a value to what the network would send.
Constructors
| Member | What it is |
|---|
Compressor() | Creates a Compressor with default values. |
Properties
| Member | What it is |
|---|
override uint BitIndex { get; } | Not implemented; throws. |
static Compressor Instance { get; private set; } | Shared instance used throughout the game. |
override uint TotalByteCount { get; } | Not implemented; throws. |
Methods
| Member | What it is |
|---|
override void Align() | Not implemented; throws. |
override void BackTrack(uint bitCount) | Does nothing. |
override object Clone() | Returns a new Compressor. |
override void Dispose() | Not implemented; throws. |
override void SerializeBits(ref uint value, int bitCount) | Does nothing, so the quantized value passes straight back. |
override void SerializeString(ref string value, Stream.StringEncoding encoding = 0) | Does nothing. |
protected override void SerializeBytes(byte[] value, int byteCount) | Does nothing. |