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

Method readFrom

produce.go:306–323  ·  view source on GitHub ↗
(r *bufio.Reader, sz int)

Source from the content-addressed store, hash-verified

304}
305
306func (p *produceResponsePartitionV7) readFrom(r *bufio.Reader, sz int) (remain int, err error) {
307 if remain, err = readInt32(r, sz, &p.Partition); err != nil {
308 return
309 }
310 if remain, err = readInt16(r, remain, &p.ErrorCode); err != nil {
311 return
312 }
313 if remain, err = readInt64(r, remain, &p.Offset); err != nil {
314 return
315 }
316 if remain, err = readInt64(r, remain, &p.Timestamp); err != nil {
317 return
318 }
319 if remain, err = readInt64(r, remain, &p.StartOffset); err != nil {
320 return
321 }
322 return
323}

Callers

nothing calls this directly

Calls 3

readInt32Function · 0.70
readInt16Function · 0.70
readInt64Function · 0.70

Tested by

no test coverage detected