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

Method size

fetch.go:200–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198}
199
200func (r fetchRequestV2) size() int32 {
201 return 4 + 4 + 4 + sizeofArray(len(r.Topics), func(i int) int32 { return r.Topics[i].size() })
202}
203
204func (r fetchRequestV2) writeTo(wb *writeBuffer) {
205 wb.writeInt32(r.ReplicaID)

Callers

nothing calls this directly

Calls 2

sizeofArrayFunction · 0.85
sizeMethod · 0.65

Tested by

no test coverage detected