Beispiel #1
0
 public virtual void WriteToStreamDelta(Stream stream, ParentInfo previous)
 {
     if (previous == null)
     {
         ParentInfo.Serialize(stream, this);
         return;
     }
     ParentInfo.SerializeDelta(stream, this, previous);
 }
Beispiel #2
0
 public static byte[] SerializeToBytes(ParentInfo instance)
 {
     byte[] array;
     using (MemoryStream memoryStream = new MemoryStream())
     {
         ParentInfo.Serialize(memoryStream, instance);
         array = memoryStream.ToArray();
     }
     return(array);
 }
Beispiel #3
0
 public virtual void WriteToStream(Stream stream)
 {
     ParentInfo.Serialize(stream, this);
 }
Beispiel #4
0
 public void ToProto(Stream stream)
 {
     ParentInfo.Serialize(stream, this);
 }