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

Method size

deletetopics.go:98–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98func (t deleteTopicsResponse) size() int32 {
99 sz := sizeofArray(len(t.TopicErrorCodes), func(i int) int32 { return t.TopicErrorCodes[i].size() })
100 if t.v >= v1 {
101 sz += sizeofInt32(t.ThrottleTime)
102 }
103 return sz
104}
105
106func (t *deleteTopicsResponse) readFrom(r *bufio.Reader, size int) (remain int, err error) {
107 fn := func(withReader *bufio.Reader, withSize int) (fnRemain int, fnErr error) {

Callers

nothing calls this directly

Calls 3

sizeofArrayFunction · 0.85
sizeofInt32Function · 0.85
sizeMethod · 0.65

Tested by

no test coverage detected