public void OnDeseialize(byte[] data) { var d = Serilization.ByteArrayToObject <Datatex>(data); this.test = d.test; this.testString = d.testString; }
public override Data OnDeserialize(byte[] data, int length) { var remote = CompressTool.Decompress(data); return(Serilization.ByteArrayToObject <Data>(remote)); }
public virtual T OnDeserialize(byte[] data, int length) { //Note data may has different size than length return(Serilization.ByteArrayToObject <T>(data)); }