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

Method writeTo

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

Source from the content-addressed store, hash-verified

193}
194
195func (p partitionMetadataV1) writeTo(wb *writeBuffer) {
196 wb.writeInt16(p.PartitionErrorCode)
197 wb.writeInt32(p.PartitionID)
198 wb.writeInt32(p.Leader)
199 wb.writeInt32Array(p.Replicas)
200 wb.writeInt32Array(p.Isr)
201}
202
203type topicMetadataRequestV6 struct {
204 Topics []string

Callers

nothing calls this directly

Calls 3

writeInt32ArrayMethod · 0.80
writeInt16Method · 0.45
writeInt32Method · 0.45

Tested by

no test coverage detected