MCPcopy
hub / github.com/segmentio/kafka-go / writeTo

Method writeTo

metadata.go:139–143  ·  view source on GitHub ↗
(wb *writeBuffer)

Source from the content-addressed store, hash-verified

137}
138
139func (r metadataResponseV1) writeTo(wb *writeBuffer) {
140 wb.writeArray(len(r.Brokers), func(i int) { r.Brokers[i].writeTo(wb) })
141 wb.writeInt32(r.ControllerID)
142 wb.writeArray(len(r.Topics), func(i int) { r.Topics[i].writeTo(wb) })
143}
144
145type brokerMetadataV1 struct {
146 NodeID int32

Callers

nothing calls this directly

Calls 3

writeArrayMethod · 0.80
writeToMethod · 0.65
writeInt32Method · 0.45

Tested by

no test coverage detected