示例#1
0
        public void OnDeseialize(byte[] data)
        {
            var d = Serilization.ByteArrayToObject <Datatex>(data);

            this.test       = d.test;
            this.testString = d.testString;
        }
示例#2
0
            public override Data OnDeserialize(byte[] data, int length)
            {
                var remote = CompressTool.Decompress(data);

                return(Serilization.ByteArrayToObject <Data>(remote));
            }
示例#3
0
 public virtual T OnDeserialize(byte[] data, int length)
 {
     //Note data may has different size than length
     return(Serilization.ByteArrayToObject <T>(data));
 }