package
1.64.0-Personal
Repository: https://github.com/dceldran/rclone.git
Documentation: pkg.go.dev

# Functions

NewContextReader creates a reader, that returns any errors that ctx gives.
NewCountingReader returns a CountingReader, which will read from the given reader while keeping track of how many bytes were read.
NewFakeSeeker creates a fake io.ReadSeeker from an io.Reader This can be seeked before reading to discover the length passed in.
NewGzipReader returns an io.ReadCloser which will read the stream and close it when Close is called.
NewLimitedReadCloser returns a LimitedReadCloser wrapping rc to limit it to reading limit bytes.
NewPatternReader creates a reader, that returns a deterministic byte pattern.
NewRepeatableLimitReader create new repeatable reader from Reader r with an initial buffer of size wrapped in an io.LimitReader to read only size.
NewRepeatableLimitReaderBuffer create new repeatable reader from Reader r and buf wrapped in an io.LimitReader to read only size.
NewRepeatableReader create new repeatable reader from Reader r.
NewRepeatableReaderBuffer create new repeatable reader from Reader r using the buffer passed in.
NewRepeatableReaderSized create new repeatable reader from Reader r with an initial buffer of size.
NoCloser makes sure that the io.Reader passed in can't upgraded to an io.Closer.
ReadFill reads as much data from r into buf as it can It reads until the buffer is full or r.Read returned an error.

# Structs

CountingReader holds a reader and a read count of how many bytes were read so far.
ErrorReader wraps an error to return on Read.
FakeSeeker adapts an io.Seeker into an io.ReadSeeker.
LimitedReadCloser adds io.Closer to io.LimitedReader.
A RepeatableReader implements the io.ReadSeeker it allow to seek cached data back and forth within the reader but will only read data from the internal Reader as necessary and will play nicely with the Account and io.LimitedReader to reflect current speed.