예제 #1
0
 public override int WriteToWire(KafkaWireWriter writer)
 {
     writer.Write(NodeId);
     var hostNameLength = writer.WriteAndReturnLength(Host);
     writer.Write(Port);
     return 4 + hostNameLength + 4;
 }
예제 #2
0
 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);
 }
예제 #3
0
 public override int WriteToWire(KafkaWireWriter writer)
 {
     writer.Write(Partition);
     writer.Write((short)ErrorCode);
     writer.Write(Offset);
     return 4 + 2 + 8;
 }
예제 #4
0
 public override int WriteToWire(KafkaWireWriter writer)
 {
     writer.Write((short)TopicErrorCode);
     return 4
            + writer.WriteAndReturnLength(TopicName)
            + writer.Write(Partitions);
 }
예제 #5
0
 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);
 }
예제 #6
0
 public override int WriteToWire(KafkaWireWriter writer)
 {
     return base.WriteToWire(writer) + writer.Write(Topics);
 }
예제 #7
0
 public override int WriteToWire(KafkaWireWriter writer)
 {
     return writer.WriteAndReturnLength(TopicName) + writer.Write(Partitions);
 }
예제 #8
0
 public override int WriteToWire(KafkaWireWriter writer)
 {
     writer.Write(CorrolationId);
     return 4;
 }
예제 #9
0
 public override int WriteToWire(KafkaWireWriter writer)
 {
     writer.Write(Offset);
     writer.Write(MessageSize);
     return 8 + 4 + Message.WriteToWire(writer);
 }