Example #1
0
 public override void Deserialize(List<byte> bytes)
 {
     Deserializer ds = new Deserializer(bytes);
     id = ds.PopString(kIdLength * kCharSize);
     pw = ds.PopString(kPwLength * kCharSize);
     ds.Clear();
 }
Example #2
0
 public void Deserialize(List<byte> bytes)
 {
     Deserializer ds = new Deserializer(bytes);
     header = new Header(ds.PopArray(Header.kSerializedSize));
     data = Data.CreateData(header.dataType, ds.PopArray(header.dataSize));
     ds.Clear();
 }
Example #3
0
 public void Deserialize(List<byte> bytes)
 {
     Deserializer ds = new Deserializer(bytes);
     dataSize = ds.PopInt();
     dataType = (DataType)ds.PopInt();
     ds.Clear();
 }