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

Method readFrom

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

Source from the content-addressed store, hash-verified

268}
269
270func (p *produceResponsePartitionV2) readFrom(r *bufio.Reader, sz int) (remain int, err error) {
271 if remain, err = readInt32(r, sz, &p.Partition); err != nil {
272 return
273 }
274 if remain, err = readInt16(r, remain, &p.ErrorCode); err != nil {
275 return
276 }
277 if remain, err = readInt64(r, remain, &p.Offset); err != nil {
278 return
279 }
280 if remain, err = readInt64(r, remain, &p.Timestamp); err != nil {
281 return
282 }
283 return
284}
285
286type produceResponsePartitionV7 struct {
287 Partition int32

Callers 1

Calls 3

readInt32Function · 0.70
readInt16Function · 0.70
readInt64Function · 0.70

Tested by

no test coverage detected