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