NewCountingReader returns a CountingReader, which will read from the given reader while keeping track of how many bytes were read.
(in io.Reader)
| 5 | // NewCountingReader returns a CountingReader, which will read from the given |
| 6 | // reader while keeping track of how many bytes were read. |
| 7 | func NewCountingReader(in io.Reader) *CountingReader { |
| 8 | return &CountingReader{in: in} |
| 9 | } |
| 10 | |
| 11 | // CountingReader holds a reader and a read count of how many bytes were read |
| 12 | // so far. |
no outgoing calls
no test coverage detected
searching dependent graphs…