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

Function discardBytes

discard.go:31–38  ·  view source on GitHub ↗
(r *bufio.Reader, sz int)

Source from the content-addressed store, hash-verified

29}
30
31func discardBytes(r *bufio.Reader, sz int) (int, error) {
32 return readBytesWith(r, sz, func(r *bufio.Reader, sz int, n int) (int, error) {
33 if n < 0 {
34 return sz, nil
35 }
36 return discardN(r, sz, n)
37 })
38}

Callers 1

discardBytesMethod · 0.85

Calls 2

readBytesWithFunction · 0.85
discardNFunction · 0.85

Tested by

no test coverage detected