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

Method size

metadata.go:232–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230}
231
232func (r metadataResponseV6) size() int32 {
233 n1 := sizeofArray(len(r.Brokers), func(i int) int32 { return r.Brokers[i].size() })
234 n2 := sizeofNullableString(&r.ClusterId)
235 n3 := sizeofArray(len(r.Topics), func(i int) int32 { return r.Topics[i].size() })
236 return 4 + 4 + n1 + n2 + n3
237}
238
239func (r metadataResponseV6) writeTo(wb *writeBuffer) {
240 wb.writeInt32(r.ThrottleTimeMs)

Callers

nothing calls this directly

Calls 3

sizeofArrayFunction · 0.85
sizeofNullableStringFunction · 0.85
sizeMethod · 0.65

Tested by

no test coverage detected