mirror of
https://github.com/octoleo/restic.git
synced 2024-11-05 04:47:51 +00:00
Remove ContinuousReader
This commit is contained in:
parent
c388101217
commit
2701eabe39
@ -1,16 +0,0 @@
|
||||
package s3
|
||||
|
||||
import "io"
|
||||
|
||||
// ContinuousReader implements an io.Reader on top of an io.ReaderAt, advancing
|
||||
// an offset.
|
||||
type ContinuousReader struct {
|
||||
R io.ReaderAt
|
||||
Offset int64
|
||||
}
|
||||
|
||||
func (c *ContinuousReader) Read(p []byte) (int, error) {
|
||||
n, err := c.R.ReadAt(p, c.Offset)
|
||||
c.Offset += int64(n)
|
||||
return n, err
|
||||
}
|
Loading…
Reference in New Issue
Block a user