Quantum 3
3.0.9
Represents a bit stream used for frame checksum calculation. Implements the IBitStream interface. More...
Inherits Photon.Deterministic.IBitStream.
Public Member Functions | |
| FrameChecksumerBitStream () | |
| Constructor. More... | |
| FrameChecksumerBitStream (ulong crc) | |
| Constructor with an initial checksum. More... | |
| bool | Condition (bool condition) |
| Evaluates a condition and updates the checksum accordingly. More... | |
| void | CopyFromArray (byte[] data) |
| Not supported. More... | |
| void | CopyFromBuffer (byte *data, int length) |
| Not supported. More... | |
| bool | ReadBool () |
| Not supported. More... | |
| bool | ReadBoolean () |
| Not supported. More... | |
| byte | ReadByte () |
| Not supported. More... | |
| FP | ReadFP () |
| Not supported. More... | |
| FPVector2 | ReadFPVector2 () |
| Not supported. More... | |
| FPVector3 | ReadFPVector3 () |
| Not supported. More... | |
| int | ReadInt () |
| Not supported. More... | |
| long | ReadLong () |
| Not supported. More... | |
| uint | ReadUInt () |
| Not supported. More... | |
| ulong | ReadULong () |
| void | Reset () |
| Resets the checksum to 0. More... | |
| void | Reset (ulong crc) |
| Resets the checksum to the specified value. More... | |
| void | Serialize (byte *v) |
| Update the checksum with a byte. More... | |
| void | Serialize (int *v) |
| Update the checksum with an int. More... | |
| void | Serialize (int *v, int bits) |
| Updates the checksum with and int. More... | |
| void | Serialize (long *v) |
| Update the checksum with a long. More... | |
| void | Serialize (ref bool value) |
| Update the checksum with a boolean value. More... | |
| void | Serialize (ref byte value) |
| Update the checksum with a byte value. More... | |
| void | Serialize (ref byte[] array, ref int length) |
| Not supported. More... | |
| void | Serialize (ref byte[] array, ref int length, int fixedSize) |
| Not supported. More... | |
| void | Serialize (ref byte[] value) |
| Not supported. More... | |
| void | Serialize (ref byte[] value, int fixedSize) |
| Not supported. More... | |
| void | Serialize (ref double value) |
| Update the checksum with a double value. More... | |
| void | Serialize (ref float value) |
| Update the checksum with a float value. More... | |
| void | Serialize (ref FP value) |
| Update the checksum with a FP value. More... | |
| void | Serialize (ref FPQuaternion value) |
| Update the checksum with a FPQuaternion. More... | |
| void | Serialize (ref FPVector2 value) |
| Update the checksum with a FPVector2. More... | |
| void | Serialize (ref FPVector3 value) |
| Update the checksum with a FPVector3. More... | |
| void | Serialize (ref int value) |
| Update the checksum with an int value. More... | |
| void | Serialize (ref int value, int bits) |
| Update the checksum with an int value. More... | |
| void | Serialize (ref int[] value) |
| Updates the checksum with a byte array. Not supported, will throw an exception. More... | |
| void | Serialize (ref long value) |
| Update the checksum with a long value. More... | |
| void | Serialize (ref string value) |
| Not supported, will throw an exception. More... | |
| void | Serialize (ref uint value) |
| Update the checksum with a uint value. More... | |
| void | Serialize (ref uint value, int bits) |
| Update the checksum with a uint value. More... | |
| void | Serialize (ref ulong value) |
| Update the checksum with a ulong value. More... | |
| void | Serialize (ref ulong value, int bits) |
| Update the checkusm with a ulong value. More... | |
| void | Serialize (sbyte *v) |
| Updates the the checksum with a sbyte. More... | |
| void | Serialize (short *v) |
| Update the checksum with a short. More... | |
| void | Serialize (uint *v) |
| Update the checksum with a uint. More... | |
| void | Serialize (uint *v, int bits) |
| Update the checksum with an uint. More... | |
| void | Serialize (ulong *v) |
| Update the checksum with a ulong. More... | |
| void | Serialize (ushort *v) |
| Update the checksum with a ushort. More... | |
| void | SerializeArray< T > (ref T[] array, BitStream.ArrayElementSerializer< T > serializer, int maxLength=int.MaxValue) |
| Updates the checksum with an array ans a custom serializer. More... | |
| int | SerializeArrayLength< T > (ref T[] array, int maxLength=int.MaxValue) |
| Updates the checksum with an array. More... | |
| void | SerializeBuffer (byte *buffer, int length) |
| Updates the checksum with a buffer of bytes. More... | |
| void | SerializeBuffer (int *buffer, int length) |
| Updates the checksum with a buffer of ints. More... | |
| void | SerializeBuffer (long *buffer, int length) |
| Updates the checksum with a buffer of longs. More... | |
| void | SerializeBuffer (sbyte *buffer, int length) |
| Updates the checksum with a buffer of sbytes. More... | |
| void | SerializeBuffer (short *buffer, int length) |
| Updates the checksum with a buffer of shorts. More... | |
| void | SerializeBuffer (uint *buffer, int length) |
| Updates the checksum with a buffer of uints. More... | |
| void | SerializeBuffer (ulong *buffer, int length) |
| Updates the checksum with a buffer of ulongs. More... | |
| void | SerializeBuffer (ushort *buffer, int length) |
| Updates the checksum with a buffer of ushorts. More... | |
| byte[] | ToArray () |
| Not supported. More... | |
| bool | WriteBool (bool v) |
| Updates the checksum with a bool. More... | |
| bool | WriteBoolean (bool v) |
| Updates the checksum with a bool. More... | |
| void | WriteByte (byte v) |
| Updates the checksum with a byte. More... | |
| void | WriteFP (FP v) |
| Updates the checksum with a FP. More... | |
| void | WriteFPVector2 (FPVector2 v) |
| Updates the checksum with a FPVector2. More... | |
| void | WriteFPVector3 (FPVector3 v) |
| Updates the checksum with a FPVector3. More... | |
| void | WriteInt (int v) |
| Updates the checksum with an int. More... | |
| void | WriteLong (long v) |
| Updates the checksum with a long. More... | |
| void | WriteUInt (uint v) |
| Updates the checksum with a uint. More... | |
| void | WriteULong (ulong v) |
| Updates the checksum with a ulong. More... | |
Properties | |
| int | BytesRequired [get] |
| Get the number of bytes required to store the checksum. More... | |
| ulong | Checksum [get, set] |
| Get or set the current checksum. More... | |
| byte[] | Data [get] |
| Convert the checksum into a byte array. More... | |
| bool | Reading [get, set] |
| Indicating whether the bit stream is currently reading. More... | |
| bool | Writing [get, set] |
| Indicating whether the bit stream is currently writing. More... | |
Represents a bit stream used for frame checksum calculation. Implements the IBitStream interface.
|
inline |
Constructor.
|
inline |
Constructor with an initial checksum.
| crc | Initial checksum |
|
inline |
Evaluates a condition and updates the checksum accordingly.
| condition | The condition to evaluate. |
|
inline |
Resets the checksum to the specified value.
| crc | The value to reset the checksum to. |
|
inline |
Not supported, will throw an exception.
| value | String value |
| System.NotImplementedException | Not supported- |
|
inline |
Update the checksum with a boolean value.
| value | Boolean value |
|
inline |
Update the checksum with a float value.
| value | Float value |
|
inline |
Update the checksum with a double value.
| value | Double value |
|
inline |
Update the checksum with a long value.
| value | Long value |
|
inline |
Update the checksum with a ulong value.
| value | Ulong value |
|
inline |
Update the checksum with a FP value.
| value | FP value |
|
inline |
Update the checksum with a FPVector2.
| value | Vector2 |
|
inline |
Update the checksum with a FPVector3.
| value | Vector3 |
|
inline |
Update the checksum with a FPQuaternion.
| value | Quaternion |
|
inline |
Update the checksum with a byte value.
| value | Byte |
|
inline |
Update the checksum with a uint value.
| value | Uint |
|
inline |
Update the checksum with a uint value.
| value | Uint |
| bits | Unsused |
|
inline |
Update the checkusm with a ulong value.
| value | Ulong |
| bits | Unused |
|
inline |
Update the checksum with an int value.
| value | Int |
|
inline |
Update the checksum with an int value.
| value | Int |
| bits | Unused |
|
inline |
Update the checksum with a byte.
| v | Pointer to byte |
|
inline |
Updates the the checksum with a sbyte.
| v | Sbyte |
|
inline |
Update the checksum with a short.
| v | Short |
|
inline |
Update the checksum with a ushort.
| v | Ushort |
|
inline |
Update the checksum with an int.
| v | Int |
|
inline |
Update the checksum with a uint.
| v | Uint |
|
inline |
Update the checksum with a long.
| v | Long |
|
inline |
Update the checksum with a ulong.
| v | Ulong |
|
inline |
Update the checksum with an uint.
| v | Uint |
| bits | Unused |
|
inline |
Updates the checksum with and int.
| v | Int |
| bits | Unused |
|
inline |
Updates the checksum with a buffer of bytes.
| buffer | Byte array |
| length | Array length |
|
inline |
Updates the checksum with a buffer of sbytes.
| buffer | Sbyte array |
| length | Array length |
|
inline |
Updates the checksum with a buffer of shorts.
| buffer | Array of shorts |
| length | Array length |
|
inline |
Updates the checksum with a buffer of ushorts.
| buffer | Array of ushort |
| length | Array length |
|
inline |
Updates the checksum with a buffer of ints.
| buffer | Array of ints |
| length | Array length |
|
inline |
Updates the checksum with a buffer of uints.
| buffer | Array of uint |
| length | Array length |
|
inline |
Updates the checksum with a buffer of longs.
| buffer | Array of longs |
| length | Array length |
|
inline |
Updates the checksum with a buffer of ulongs.
| buffer | Array of ulong |
| length | Array length |
|
inline |
Updates the checksum with a bool.
| v | Bool |
|
inline |
Updates the checksum with a bool.
| v | Bool |
|
inline |
Updates the checksum with an int.
| v | Int |
|
inline |
Updates the checksum with a uint.
| v | Uint |
|
inline |
Updates the checksum with a FP.
| v | FP |
|
inline |
Updates the checksum with a FPVector2.
| v | Vector2 |
|
inline |
Updates the checksum with a FPVector3.
| v | Vector3 |
|
inline |
Updates the checksum with a long.
| v | Long |
|
inline |
Updates the checksum with a ulong.
| v | Ulong |
|
inline |
Updates the checksum with a byte.
| v | Byte value |
|
inline |
Updates the checksum with a byte array. Not supported, will throw an exception.
| value | Byte array reference |
| InvalidOperationException | Not supported |
|
inline |
Not supported.
| value | Value |
| InvalidOperationException | Not supported |
|
inline |
Not supported.
| array | Array |
| length | Array length |
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| value | Array |
| fixedSize | Array fixes size |
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| array | Array |
| length | Array length |
| fixedSize | Array fixed size |
| InvalidOperationException | Not supported. |
|
inline |
Updates the checksum with an array.
| T | Array type |
| array | Array reference |
| maxLength | The max size of the input array. |
|
inline |
Updates the checksum with an array ans a custom serializer.
| T | Type of array |
| array | Array reference |
| serializer | Serializer callback |
| maxLength | The max size of the input array. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Not supported.
| InvalidOperationException | Not supported. |
|
inline |
Resets the checksum to 0.
|
getset |
Indicating whether the bit stream is currently writing.
|
getset |
Indicating whether the bit stream is currently reading.
|
getset |
Get or set the current checksum.
|
get |
Get the number of bytes required to store the checksum.
|
get |
Convert the checksum into a byte array.