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