ReadFileHandle is an open for read file handle on a File
| 18 | |
| 19 | // ReadFileHandle is an open for read file handle on a File |
| 20 | type ReadFileHandle struct { |
| 21 | baseHandle |
| 22 | done func(ctx context.Context, err error) |
| 23 | mu sync.Mutex |
| 24 | cond sync.Cond // cond lock for out of sequence reads |
| 25 | r *accounting.Account |
| 26 | size int64 // size of the object (0 for unknown length) |
| 27 | offset int64 // offset of read of o |
| 28 | roffset int64 // offset of Read() calls |
| 29 | file *File |
| 30 | hash *hash.MultiHasher |
| 31 | remote string |
| 32 | closed bool // set if handle has been closed |
| 33 | readCalled bool // set if read has been called |
| 34 | noSeek bool |
| 35 | sizeUnknown bool // set if size of source is not known |
| 36 | opened bool |
| 37 | } |
| 38 | |
| 39 | // Check interfaces |
| 40 | var ( |
nothing calls this directly
no outgoing calls
no test coverage detected