Beispiel #1
0
 public virtual bool Deserialize(Stream stream)
 {
     using (ObjectStream OBS = new ObjectStream(stream))
     {
         FileHash = OBS.ReadData();
         FileVersion = OBS.ReadUInt64();
         RemoteFilename = OBS.ReadString();
         Data = OBS.ReadData();
     }
     return true;
 }
Beispiel #2
0
 public bool Deserialize(Stream stream)
 {
     using (ObjectStream MS = new ObjectStream(stream))
     {
         MS.Write(Data, 0, Data.Length);
         MS.Position = 0;
         ID = MS.ReadInt64();
         Age = MS.ReadInt32();
         Name = MS.ReadString();
         Data = MS.ReadData();
     }
     return true;
 }