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

Method size

fetch.go:216–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214}
215
216func (t fetchRequestTopicV2) size() int32 {
217 return sizeofString(t.TopicName) +
218 sizeofArray(len(t.Partitions), func(i int) int32 { return t.Partitions[i].size() })
219}
220
221func (t fetchRequestTopicV2) writeTo(wb *writeBuffer) {
222 wb.writeString(t.TopicName)

Callers

nothing calls this directly

Calls 3

sizeofStringFunction · 0.85
sizeofArrayFunction · 0.85
sizeMethod · 0.65

Tested by

no test coverage detected