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

Method writeTo

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

Source from the content-addressed store, hash-verified

258}
259
260func (t topicMetadataV6) writeTo(wb *writeBuffer) {
261 wb.writeInt16(t.TopicErrorCode)
262 wb.writeString(t.TopicName)
263 wb.writeBool(t.Internal)
264 wb.writeArray(len(t.Partitions), func(i int) { t.Partitions[i].writeTo(wb) })
265}
266
267type partitionMetadataV6 struct {
268 PartitionErrorCode int16

Callers

nothing calls this directly

Calls 5

writeBoolMethod · 0.80
writeArrayMethod · 0.80
writeToMethod · 0.65
writeInt16Method · 0.45
writeStringMethod · 0.45

Tested by

no test coverage detected