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

Method readFrom

offsetcommit.go:231–239  ·  view source on GitHub ↗
(r *bufio.Reader, size int)

Source from the content-addressed store, hash-verified

229}
230
231func (t *offsetCommitResponseV2PartitionResponse) readFrom(r *bufio.Reader, size int) (remain int, err error) {
232 if remain, err = readInt32(r, size, &t.Partition); err != nil {
233 return
234 }
235 if remain, err = readInt16(r, remain, &t.ErrorCode); err != nil {
236 return
237 }
238 return
239}
240
241type offsetCommitResponseV2Response struct {
242 Topic string

Callers

nothing calls this directly

Calls 2

readInt32Function · 0.70
readInt16Function · 0.70

Tested by

no test coverage detected