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

Method size

createtopics.go:281–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279}
280
281func (t createTopicsRequest) size() int32 {
282 sz := sizeofArray(len(t.Topics), func(i int) int32 { return t.Topics[i].size() }) +
283 sizeofInt32(t.Timeout)
284 if t.v >= v1 {
285 sz += 1
286 }
287 return sz
288}
289
290func (t createTopicsRequest) writeTo(wb *writeBuffer) {
291 wb.writeArray(len(t.Topics), func(i int) { t.Topics[i].writeTo(wb) })

Callers

nothing calls this directly

Calls 3

sizeofArrayFunction · 0.85
sizeofInt32Function · 0.85
sizeMethod · 0.65

Tested by

no test coverage detected