public virtual void WriteToStreamDelta(Stream stream, Motorboat previous)
 {
     if (previous == null)
     {
         Motorboat.Serialize(stream, this);
         return;
     }
     Motorboat.SerializeDelta(stream, this, previous);
 }
 public static byte[] SerializeToBytes(Motorboat instance)
 {
     byte[] array;
     using (MemoryStream memoryStream = new MemoryStream())
     {
         Motorboat.Serialize(memoryStream, instance);
         array = memoryStream.ToArray();
     }
     return(array);
 }
 public virtual void WriteToStream(Stream stream)
 {
     Motorboat.Serialize(stream, this);
 }
 public void ToProto(Stream stream)
 {
     Motorboat.Serialize(stream, this);
 }