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

Method size

createtopics.go:248–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246}
247
248func (t createTopicsRequestV0Topic) size() int32 {
249 return sizeofString(t.Topic) +
250 sizeofInt32(t.NumPartitions) +
251 sizeofInt16(t.ReplicationFactor) +
252 sizeofArray(len(t.ReplicaAssignments), func(i int) int32 { return t.ReplicaAssignments[i].size() }) +
253 sizeofArray(len(t.ConfigEntries), func(i int) int32 { return t.ConfigEntries[i].size() })
254}
255
256func (t createTopicsRequestV0Topic) writeTo(wb *writeBuffer) {
257 wb.writeString(t.Topic)

Callers

nothing calls this directly

Calls 5

sizeofStringFunction · 0.85
sizeofInt32Function · 0.85
sizeofInt16Function · 0.85
sizeofArrayFunction · 0.85
sizeMethod · 0.65

Tested by

no test coverage detected