MCPcopy Index your code
hub / github.com/rclone/rclone / Read

Method Read

vfs/read_write.go:292–298  ·  view source on GitHub ↗

Read bytes from the file

(b []byte)

Source from the content-addressed store, hash-verified

290
291// Read bytes from the file
292func (fh *RWFileHandle) Read(b []byte) (n int, err error) {
293 fh.mu.Lock()
294 defer fh.mu.Unlock()
295 n, err = fh._readAt(b, fh.offset, false)
296 fh.offset += int64(n)
297 return n, err
298}
299
300// Seek to new file position
301func (fh *RWFileHandle) Seek(offset int64, whence int) (ret int64, err error) {

Callers

nothing calls this directly

Calls 3

_readAtMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected