blazer
blazer copied to clipboard
make b2.Reader an io.WriterTo
When downloading, the reader suffers from head-of-line blocking and has to buffer chunks that may have finished but which can't be flushed yet. If the b2.Reader satisfies io.WriterTo, then (for appropriate writers anyway) it will be able to flush that data as soon as it is available.
make them WriterAts and ReaderAts while you're having fun in here
WritersAt and ReadersAt
w.WriterAt is never going to be feasible with b2's API. r.ReaderAt doesn't really make sense but might still be interesting.