예제 #1
0
 public override int WriteToWire(KafkaWireWriter writer)
 {
     writer.Write((short)ApiKey);
     writer.Write(ApiVersion);
     writer.Write(CorrelationId);
     return 2 + 2 + 4 + writer.WriteAndReturnLength(ClientId);
 }
예제 #2
0
 public override int WriteToWire(KafkaWireWriter writer)
 {
     return writer.WriteAndReturnLength(Topic) + writer.Write(Partitions);
 }