Provides tools for the Exit Games Protocol More...
Static Public Member Functions | |
static bool | TryRegisterType (Type type, byte typeCode, SerializeMethod serializeFunction, DeserializeMethod deserializeFunction) |
static bool | TryRegisterType (Type type, byte typeCode, SerializeStreamMethod serializeFunction, DeserializeStreamMethod deserializeFunction) |
static byte[] | Serialize (object obj) |
Serialize creates a byte-array from the given object and returns it. More... | |
static object | Deserialize (byte[] serializedData) |
Deserialize returns an object reassembled from the given byte-array. More... | |
static void | Serialize (short value, byte[] target, ref int targetOffset) |
Serializes a short typed value into a byte-array (target) starting at the also given targetOffset. The altered offset is known to the caller, because it is given via a referenced parameter. More... | |
static void | Serialize (int value, byte[] target, ref int targetOffset) |
Serializes an int typed value into a byte-array (target) starting at the also given targetOffset. The altered offset is known to the caller, because it is given via a referenced parameter. More... | |
static void | Serialize (float value, byte[] target, ref int targetOffset) |
Serializes an float typed value into a byte-array (target) starting at the also given targetOffset. The altered offset is known to the caller, because it is given via a referenced parameter. More... | |
static void | Deserialize (out int value, byte[] source, ref int offset) |
Deserialize fills the given int typed value with the given byte-array (source) starting at the also given offset. The result is placed in a variable (value). There is no need to return a value because the parameter value is given by reference. The altered offset is this way also known to the caller. More... | |
static void | Deserialize (out short value, byte[] source, ref int offset) |
Deserialize fills the given short typed value with the given byte-array (source) starting at the also given offset. The result is placed in a variable (value). There is no need to return a value because the parameter value is given by reference. The altered offset is this way also known to the caller. More... | |
static void | Deserialize (out float value, byte[] source, ref int offset) |
Deserialize fills the given float typed value with the given byte-array (source) starting at the also given offset. The result is placed in a variable (value). There is no need to return a value because the parameter value is given by reference. The altered offset is this way also known to the caller. More... | |
Provides tools for the Exit Games Protocol
|
inlinestatic |
Deserialize returns an object reassembled from the given byte-array.
serializedData | The byte-array to be Deserialized |
|
inlinestatic |
Deserialize fills the given float typed value with the given byte-array (source) starting at the also given offset. The result is placed in a variable (value). There is no need to return a value because the parameter value is given by reference. The altered offset is this way also known to the caller.
value | The float value to deserialize |
source | The byte-array to deserialize from |
offset | The offset in the byte-array |
|
inlinestatic |
Deserialize fills the given int typed value with the given byte-array (source) starting at the also given offset. The result is placed in a variable (value). There is no need to return a value because the parameter value is given by reference. The altered offset is this way also known to the caller.
value | The int value to deserialize into |
source | The byte-array to deserialize from |
offset | The offset in the byte-array |
|
inlinestatic |
Deserialize fills the given short typed value with the given byte-array (source) starting at the also given offset. The result is placed in a variable (value). There is no need to return a value because the parameter value is given by reference. The altered offset is this way also known to the caller.
value | The short value to deserialized into |
source | The byte-array to deserialize from |
offset | The offset in the byte-array |
|
inlinestatic |
Serializes an float typed value into a byte-array (target) starting at the also given targetOffset. The altered offset is known to the caller, because it is given via a referenced parameter.
value | The float value to be serialized |
target | The byte-array to serialize the short to |
targetOffset | The offset in the byte-array |
|
inlinestatic |
Serializes an int typed value into a byte-array (target) starting at the also given targetOffset. The altered offset is known to the caller, because it is given via a referenced parameter.
value | The int value to be serialized |
target | The byte-array to serialize the short to |
targetOffset | The offset in the byte-array |
|
inlinestatic |
Serialize creates a byte-array from the given object and returns it.
obj | The object to serialize |
|
inlinestatic |
Serializes a short typed value into a byte-array (target) starting at the also given targetOffset. The altered offset is known to the caller, because it is given via a referenced parameter.
value | The short value to be serialized |
target | The byte-array to serialize the short to |
targetOffset | The offset in the byte-array |
|
inlinestatic |
|
inlinestatic |