MCPcopy
hub / github.com/rclone/rclone / ReadFileHandle

Struct ReadFileHandle

vfs/read.go:20–37  ·  view source on GitHub ↗

ReadFileHandle is an open for read file handle on a File

Source from the content-addressed store, hash-verified

18
19// ReadFileHandle is an open for read file handle on a File
20type 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
40var (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected