C# Class 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
Show file Open project: Good4m/WindowsDefender

Public Methods

Method Description
DeSerialize ( byte arr ) : Instruction

Concerts byte[] to Instruction.

Serialize ( Instruction obj ) : byte[]

Converts Instruction to byte[].

Method Details

DeSerialize() public static method

Concerts byte[] to Instruction.
public static DeSerialize ( byte arr ) : Instruction
arr byte A byte array of the Instruction.
return Instruction

Serialize() public static method

Converts Instruction to byte[].
public static Serialize ( Instruction obj ) : byte[]
obj Instruction The Instruction to be serialized.
return byte[]