MCPcopy
hub / github.com/rclone/rclone / NewCountingReader

Function NewCountingReader

lib/readers/counting_reader.go:7–9  ·  view source on GitHub ↗

NewCountingReader returns a CountingReader, which will read from the given reader while keeping track of how many bytes were read.

(in io.Reader)

Source from the content-addressed store, hash-verified

5// NewCountingReader returns a CountingReader, which will read from the given
6// reader while keeping track of how many bytes were read.
7func 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.

Callers 6

UpdateMethod · 0.92
NewBinReaderFunction · 0.92
UpdateMethod · 0.92
uploadChunkedMethod · 0.92
UpdateMethod · 0.92
rcatSrcFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…