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

Method WriteAt

vfs/read_write.go:365–373  ·  view source on GitHub ↗

WriteAt bytes to the file at off

(b []byte, off int64)

Source from the content-addressed store, hash-verified

363
364// WriteAt bytes to the file at off
365func (fh *RWFileHandle) WriteAt(b []byte, off int64) (n int, err error) {
366 fh.mu.Lock()
367 n, err = fh._writeAt(b, off, true)
368 if fh.flags&os.O_APPEND != 0 {
369 fh.offset += int64(n)
370 }
371 fh.mu.Unlock()
372 return n, err
373}
374
375// Write bytes to the file
376func (fh *RWFileHandle) Write(b []byte) (n int, err error) {

Callers

nothing calls this directly

Calls 3

_writeAtMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected