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

Method writeTo

createtopics.go:359–364  ·  view source on GitHub ↗
(wb *writeBuffer)

Source from the content-addressed store, hash-verified

357}
358
359func (t createTopicsResponse) writeTo(wb *writeBuffer) {
360 if t.v >= v2 {
361 wb.writeInt32(t.ThrottleTime)
362 }
363 wb.writeArray(len(t.TopicErrors), func(i int) { t.TopicErrors[i].writeTo(wb) })
364}
365
366func (t *createTopicsResponse) readFrom(r *bufio.Reader, size int) (remain int, err error) {
367 fn := func(r *bufio.Reader, size int) (fnRemain int, fnErr error) {

Callers 1

TestCreateTopicsResponseFunction · 0.95

Calls 3

writeArrayMethod · 0.80
writeToMethod · 0.65
writeInt32Method · 0.45

Tested by 1

TestCreateTopicsResponseFunction · 0.76