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