Diarkis C# Client SDK
Public Member Functions | Properties | List of all members
Diarkis.Lib.SyncData Class Reference

Manages Serialization and Deserialization of custom property data. This is meant to be used to create payload for clients to clients synchronization via network. More...

Public Member Functions

void Serialize ()
 Serializes properties into a byte array as SyncData.Serialized. If SyncData.Serialized has previlously been set, it will be replaced. Serialized data format: For multiple sets of name and object, this set repeats. NOTE: Size byte arrays are BigEndian uint16 +-----------—+-----------------—+-------------—+-------------------—+ | Size of Name | Name | Size of Object | Object | +-----------—+-----------------—+-------------—+-------------------—+ | 2 bytes | Size of Name bytes | 2 bytes | Size of Object bytes | +-----------—+-----------------—+-------------—+-------------------—+ More...
 
void Deserialize (byte[] bytesIn)
 Deserializes the given byte array to SyncData.Properties. If SyncData.Properties were previously set, they will be replaced by the desesrialized properties. Serialized data format: For multiple sets of name and object, this set repeats. NOTE: Size byte arrays are BigEndian uint16 +-----------—+-----------------—+-------------—+-------------------—+ | Size of Name | Name | Size of Object | Object | +-----------—+-----------------—+-------------—+-------------------—+ | 2 bytes | Size of Name bytes | 2 bytes | Size of Object bytes | +-----------—+-----------------—+-------------—+-------------------—+ More...
 

Properties

string UID [get, set]
 Unique ID of SyncData More...
 
Dictionary< string, object > Properties [get, set]
 Properties of SyncData to be serialied More...
 
byte[] Serialized [get]
 Serialized SyncData properties More...
 

Detailed Description

Manages Serialization and Deserialization of custom property data. This is meant to be used to create payload for clients to clients synchronization via network.

Member Function Documentation

◆ Deserialize()

void Diarkis.Lib.SyncData.Deserialize ( byte[]  bytesIn)
inline

Deserializes the given byte array to SyncData.Properties. If SyncData.Properties were previously set, they will be replaced by the desesrialized properties. Serialized data format: For multiple sets of name and object, this set repeats. NOTE: Size byte arrays are BigEndian uint16 +-----------—+-----------------—+-------------—+-------------------—+ | Size of Name | Name | Size of Object | Object | +-----------—+-----------------—+-------------—+-------------------—+ | 2 bytes | Size of Name bytes | 2 bytes | Size of Object bytes | +-----------—+-----------------—+-------------—+-------------------—+

◆ Serialize()

void Diarkis.Lib.SyncData.Serialize ( )
inline

Serializes properties into a byte array as SyncData.Serialized. If SyncData.Serialized has previlously been set, it will be replaced. Serialized data format: For multiple sets of name and object, this set repeats. NOTE: Size byte arrays are BigEndian uint16 +-----------—+-----------------—+-------------—+-------------------—+ | Size of Name | Name | Size of Object | Object | +-----------—+-----------------—+-------------—+-------------------—+ | 2 bytes | Size of Name bytes | 2 bytes | Size of Object bytes | +-----------—+-----------------—+-------------—+-------------------—+

Property Documentation

◆ Properties

Dictionary<string, object> Diarkis.Lib.SyncData.Properties
getset

Properties of SyncData to be serialied

◆ Serialized

byte [] Diarkis.Lib.SyncData.Serialized
get

Serialized SyncData properties

◆ UID

string Diarkis.Lib.SyncData.UID
getset

Unique ID of SyncData


The documentation for this class was generated from the following file: