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

Method size

metadata.go:170–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170func (t topicMetadataV1) size() int32 {
171 return 2 + 1 +
172 sizeofString(t.TopicName) +
173 sizeofArray(len(t.Partitions), func(i int) int32 { return t.Partitions[i].size() })
174}
175
176func (t topicMetadataV1) writeTo(wb *writeBuffer) {
177 wb.writeInt16(t.TopicErrorCode)

Callers

nothing calls this directly

Calls 3

sizeofStringFunction · 0.85
sizeofArrayFunction · 0.85
sizeMethod · 0.65

Tested by

no test coverage detected