Quantum 3
3.0.9
An extension class for IAssetSerializer. More...
Static Public Member Functions | |
| static T | AssetFromByteArray< T > (this IAssetSerializer serializer, byte[] data) |
| Deserializes a single asset from the specified byte array. More... | |
| static AssetObject[] | AssetsFromByteArray (this IAssetSerializer serializer, byte[] data) |
| Deserializes an array of asset objects from the specified byte array. More... | |
| static byte[] | AssetsToByteArray (this IAssetSerializer serializer, AssetObject[] assets) |
| Converts an array of assets to a byte array. More... | |
| static byte[] | AssetToByteArray (this IAssetSerializer serializer, AssetObject asset) |
| Converts an asset object to a byte array. More... | |
| static T | CloneConfig< T > (this IAssetSerializer serializer, T obj) |
| Clones the runtime configuration. More... | |
| static T | ClonePlayer< T > (this IAssetSerializer serializer, T obj) |
| Clones the runtime player. More... | |
| static T | ConfigFromByteArray< T > (this IAssetSerializer serializer, byte[] data, bool compressed=false) |
Deserializes the runtime configuration from a byte array. May return null. More... | |
| static T | ConfigFromByteArray< T > (this IAssetSerializer serializer, byte[] data, int offset, int length, bool compressed=false) |
| Deserializes the runtime configuration from a byte array with specified offset and length. More... | |
| static byte[] | ConfigToByteArray< T > (this IAssetSerializer serializer, T obj, bool compress=false) |
| Converts the runtime configuration to a byte array. More... | |
| static T | DeserializeConfig< T > (this IAssetSerializer serializer, BitStream bitStream) |
Deserializes the runtime configuration from a BitStream. May return null. More... | |
| static T | DeserializePlayer< T > (this IAssetSerializer serializer, BitStream bitStream) |
Deserializes the runtime player from a BitStream. May return null. More... | |
| static T | PlayerFromByteArray< T > (this IAssetSerializer serializer, byte[] data, bool compressed=false) |
Deserializes the runtime player from a byte array. May return null. More... | |
| static T | PlayerFromByteArray< T > (this IAssetSerializer serializer, byte[] data, int offset, int length, bool compressed=false) |
| Deserializes the runtime player from a byte array with specified offset and length. More... | |
| static byte[] | PlayerToByteArray< T > (this IAssetSerializer serializer, T obj, bool compress=false) |
| Converts the runtime player to a byte array. More... | |
| static T | ResultFromByteArray< T > (this IAssetSerializer serializer, byte[] data, bool compressed=false) |
Deserializes the game result from a byte array. May return null. More... | |
| static T | ResultFromByteArray< T > (this IAssetSerializer serializer, byte[] data, int offset, int length, bool compressed=false) |
| Deserializes the game result from a byte array with specified offset and length. More... | |
| static byte[] | ResultToByteArray< T > (this IAssetSerializer serializer, T obj, bool compress=false) |
| Converts the game result to a byte array. More... | |
| static void | SerializeConfig< T > (this IAssetSerializer serializer, BitStream bitStream, T config) |
Serializes the runtime configuration to a BitStream. Handles null values. More... | |
| static void | SerializePlayer< T > (this IAssetSerializer serializer, BitStream bitStream, T player) |
Serializes the runtime player to a BitStream. Handles null values. More... | |
An extension class for IAssetSerializer.
|
inlinestatic |
Serializes the runtime configuration to a BitStream. Handles null values.
| T | The type of the runtime configuration. |
| serializer | The asset serializer. |
| bitStream | The bit stream to serialize to. |
| config | The runtime configuration to serialize. |
| T | : | IRuntimeConfig |
|
inlinestatic |
Deserializes the runtime configuration from a BitStream. May return null.
| T | The type of the runtime configuration. |
| serializer | The asset serializer. |
| bitStream | The bit stream to deserialize from. |
| T | : | IRuntimeConfig |
|
inlinestatic |
Clones the runtime configuration.
| T | The type of the runtime configuration. |
| serializer | The asset serializer. |
| obj | The runtime configuration to clone. |
This method clones the specified runtime configuration by serializing it to a memory stream and then deserializing it back.
| T | : | IRuntimeConfig |
|
inlinestatic |
Converts the runtime configuration to a byte array.
| T | The type of the runtime configuration. |
| serializer | The asset serializer. |
| obj | The runtime configuration to convert. |
| compress | Specifies whether to compress the byte array. |
| T | : | IRuntimeConfig |
|
inlinestatic |
Deserializes the runtime configuration from a byte array. May return null.
| T | The type of the runtime configuration. |
| serializer | The asset serializer. |
| data | The byte array to deserialize from. |
| compressed | Specifies whether the byte array is compressed. |
| T | : | IRuntimeConfig |
|
inlinestatic |
Deserializes the runtime configuration from a byte array with specified offset and length.
| T | The type of the runtime configuration. |
| serializer | The asset serializer. |
| data | The byte array to deserialize from. |
| offset | The starting offset in the byte array. |
| length | The length of the data to deserialize. |
| compressed | Specifies whether the byte array is compressed. |
| T | : | IRuntimeConfig |
|
inlinestatic |
Serializes the runtime player to a BitStream. Handles null values.
| T | The type of the runtime player. |
| serializer | The asset serializer. |
| bitStream | The bit stream to serialize to. |
| player | The runtime player to serialize. |
| T | : | IRuntimePlayer |
|
inlinestatic |
Deserializes the runtime player from a BitStream. May return null.
| T | The type of the runtime player. |
| serializer | The asset serializer. |
| bitStream | The bit stream to deserialize from. |
| T | : | IRuntimePlayer |
|
inlinestatic |
Clones the runtime player.
| T | The type of the runtime player. |
| serializer | The asset serializer. |
| obj | The runtime player to clone. |
This method clones the specified runtime player by serializing it to a memory stream and then deserializing it back.
| T | : | IRuntimePlayer |
|
inlinestatic |
Converts the runtime player to a byte array.
| T | The type of the runtime player. |
| serializer | The asset serializer. |
| obj | The runtime player to convert. |
| compress | Specifies whether to compress the byte array. |
| T | : | IRuntimePlayer |
|
inlinestatic |
Deserializes the runtime player from a byte array. May return null.
| T | The type of the runtime player. |
| serializer | The asset serializer. |
| data | The byte array to deserialize from. |
| compressed | Specifies whether the byte array is compressed. |
| T | : | IRuntimePlayer |
|
inlinestatic |
Deserializes the runtime player from a byte array with specified offset and length.
| T | The type of the runtime player. |
| serializer | The asset serializer. |
| data | The byte array to deserialize from. |
| offset | The starting offset in the byte array. |
| length | The length of the data to deserialize. |
| compressed | Specifies whether the byte array is compressed. |
| T | : | IRuntimePlayer |
|
inlinestatic |
Converts the game result to a byte array.
| T | The type of the game result. |
| serializer | The asset serializer. |
| obj | The game result to convert. |
| compress | Specifies whether to compress the byte array. |
| T | : | IGameResult |
|
inlinestatic |
Deserializes the game result from a byte array. May return null.
| T | The type of the game result. |
| serializer | The asset serializer. |
| data | The byte array to deserialize from. |
| compressed | Specifies whether the byte array is compressed. |
| T | : | IGameResult |
|
inlinestatic |
Deserializes the game result from a byte array with specified offset and length.
| T | The type of the game result. |
| serializer | The asset serializer. |
| data | The byte array to deserialize from. |
| offset | The starting offset in the byte array. |
| length | The length of the data to deserialize. |
| compressed | Specifies whether the byte array is compressed. |
| T | : | IGameResult |
|
inlinestatic |
Deserializes an array of asset objects from the specified byte array.
| serializer | The asset serializer. |
| data | The byte array to deserialize from. |
|
inlinestatic |
Converts an array of assets to a byte array.
| serializer | The asset serializer. |
| assets | The array of asset objects to serialize. |
|
inlinestatic |
Deserializes a single asset from the specified byte array.
| T | The type of the asset object. |
| serializer | The asset serializer. |
| data | The byte array to deserialize from. |
| T | : | AssetObject |
|
inlinestatic |
Converts an asset object to a byte array.
| serializer | The asset serializer. |
| asset | The asset object to serialize. |