示例#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();
 }
示例#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();
 }
示例#3
0
 public void Deserialize(List<byte> bytes)
 {
     Deserializer ds = new Deserializer(bytes);
     dataSize = ds.PopInt();
     dataType = (DataType)ds.PopInt();
     ds.Clear();
 }