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

Method readFrom

syncgroup.go:280–288  ·  view source on GitHub ↗
(r *bufio.Reader, sz int)

Source from the content-addressed store, hash-verified

278}
279
280func (t *syncGroupResponseV0) readFrom(r *bufio.Reader, sz int) (remain int, err error) {
281 if remain, err = readInt16(r, sz, &t.ErrorCode); err != nil {
282 return
283 }
284 if remain, err = readBytes(r, remain, &t.MemberAssignments); err != nil {
285 return
286 }
287 return
288}

Callers

nothing calls this directly

Calls 2

readBytesFunction · 0.85
readInt16Function · 0.70

Tested by

no test coverage detected