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

Method writeTo

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

Source from the content-addressed store, hash-verified

174}
175
176func (t topicMetadataV1) writeTo(wb *writeBuffer) {
177 wb.writeInt16(t.TopicErrorCode)
178 wb.writeString(t.TopicName)
179 wb.writeBool(t.Internal)
180 wb.writeArray(len(t.Partitions), func(i int) { t.Partitions[i].writeTo(wb) })
181}
182
183type partitionMetadataV1 struct {
184 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