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