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

Method size

createtopics.go:148–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148func (t createTopicsRequestV0ReplicaAssignment) size() int32 {
149 return sizeofInt32(t.Partition) +
150 (int32(len(t.Replicas)+1) * sizeofInt32(0)) // N+1 because the array length is a int32
151}
152
153func (t createTopicsRequestV0ReplicaAssignment) writeTo(wb *writeBuffer) {
154 wb.writeInt32(t.Partition)

Callers

nothing calls this directly

Calls 1

sizeofInt32Function · 0.85

Tested by

no test coverage detected