public override int WriteToWire(KafkaWireWriter writer) { writer.Write(NodeId); var hostNameLength = writer.WriteAndReturnLength(Host); writer.Write(Port); return 4 + hostNameLength + 4; }
public override int WriteToWire(KafkaWireWriter writer) { writer.Write((short)PartitionErrorCode); writer.Write(PartitionId); writer.Write(Leader); return 2 + 4 + 4 + writer.Write(Replicas) + writer.Write(Isr); }
public override int WriteToWire(KafkaWireWriter writer) { writer.Write(Partition); writer.Write((short)ErrorCode); writer.Write(Offset); return 4 + 2 + 8; }
public override int WriteToWire(KafkaWireWriter writer) { writer.Write((short)TopicErrorCode); return 4 + writer.WriteAndReturnLength(TopicName) + writer.Write(Partitions); }
public override int WriteToWire(KafkaWireWriter writer) { writer.Write(Partition); writer.Write((short)ErrorCode); writer.Write(HighwaterMarkOffset); writer.Write(MessageSetSize); return 4 + 2 + 8 + 4 + writer.WriteWithoutSize(MessageSet); }
public override int WriteToWire(KafkaWireWriter writer) { return base.WriteToWire(writer) + writer.Write(Topics); }
public override int WriteToWire(KafkaWireWriter writer) { return writer.WriteAndReturnLength(TopicName) + writer.Write(Partitions); }
public override int WriteToWire(KafkaWireWriter writer) { writer.Write(CorrolationId); return 4; }
public override int WriteToWire(KafkaWireWriter writer) { writer.Write(Offset); writer.Write(MessageSize); return 8 + 4 + Message.WriteToWire(writer); }