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

Method size

offsetcommit.go:151–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149}
150
151func (t offsetCommitRequestV2Partition) size() int32 {
152 return sizeofInt32(t.Partition) +
153 sizeofInt64(t.Offset) +
154 sizeofString(t.Metadata)
155}
156
157func (t offsetCommitRequestV2Partition) writeTo(wb *writeBuffer) {
158 wb.writeInt32(t.Partition)

Callers

nothing calls this directly

Calls 3

sizeofInt32Function · 0.85
sizeofInt64Function · 0.85
sizeofStringFunction · 0.85

Tested by

no test coverage detected