/// <summary> /// Writes content into given writer /// </summary> /// <param name="writer"> /// The writer. /// </param> public void WriteTo(KafkaBinaryWriter writer) { Guard.NotNull(writer, "writer"); writer.WriteTopic(this.Topic, DefaultEncoding); writer.Write(this.Partition); writer.Write(this.Offset); writer.Write(this.MaxSize); }
/// <summary> /// Writes content into given writer /// </summary> /// <param name="writer"> /// The writer. /// </param> public void WriteTo(KafkaBinaryWriter writer) { Guard.NotNull(writer, "writer"); writer.WriteTopic(this.Topic, DefaultEncoding); writer.Write(this.Partition); writer.Write(this.MessageSet.SetSize); this.MessageSet.WriteTo(writer); }