C# Класс WDClient.Serializer

This class serializes Instructions that are passed between client and server. Functionality: Serialization and Deserialization of the Instructions. Note: Different than the server's serializer class (it uses different implementation of the JSON). The client uses Unity's version of a JSON serialization class because it cannot run the new one which is .NET 4.5 and Unity uses .NET 3.5.
Authors: Duy, Nadia, Joel (Client team). Comments by Rosanna and Nadia. Updated by: NA
Показать файл Открыть проект

Открытые методы

Метод Описание
DeSerialize ( byte arr ) : Instruction

Concerts byte[] to Instruction.

Serialize ( Instruction obj ) : byte[]

Converts Instruction to byte[].

Описание методов

DeSerialize() публичный статический Метод

Concerts byte[] to Instruction.
public static DeSerialize ( byte arr ) : Instruction
arr byte A byte array of the Instruction.
Результат Instruction

Serialize() публичный статический Метод

Converts Instruction to byte[].
public static Serialize ( Instruction obj ) : byte[]
obj Instruction The Instruction to be serialized.
Результат byte[]