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