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

Method readFrom

deletetopics.go:147–155  ·  view source on GitHub ↗
(r *bufio.Reader, size int)

Source from the content-addressed store, hash-verified

145}
146
147func (t *deleteTopicsResponseV0TopicErrorCode) readFrom(r *bufio.Reader, size int) (remain int, err error) {
148 if remain, err = readString(r, size, &t.Topic); err != nil {
149 return
150 }
151 if remain, err = readInt16(r, remain, &t.ErrorCode); err != nil {
152 return
153 }
154 return
155}
156
157func (t deleteTopicsResponseV0TopicErrorCode) writeTo(wb *writeBuffer) {
158 wb.writeString(t.Topic)

Callers

nothing calls this directly

Calls 2

readStringFunction · 0.85
readInt16Function · 0.70

Tested by

no test coverage detected