MCPcopy
hub / github.com/syncthing/syncthing / Write

Method Write

lib/fs/fakefs.go:902–907  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

900}
901
902func (f *fakeFile) Write(p []byte) (int, error) {
903 f.mut.Lock()
904 offs := f.offset
905 f.mut.Unlock()
906 return f.WriteAt(p, offs)
907}
908
909func (f *fakeFile) WriteAt(p []byte, off int64) (int, error) {
910 f.mut.Lock()

Callers 15

zipFileFunction · 0.45
mainFunction · 0.45
walkerForFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
hashFunction · 0.45
DialContextMethod · 0.45
writeFileFunction · 0.45
TestPullCaseOnlyRenameFunction · 0.45

Calls 2

WriteAtMethod · 0.95
UnlockMethod · 0.80

Tested by 15

writeFileFunction · 0.36
TestPullCaseOnlyRenameFunction · 0.36
TestRequestFunction · 0.36
TestVersionRestoreFunction · 0.36
TestIssue5002Function · 0.36
TestRequestDeleteChangedFunction · 0.36
handlerMethod · 0.36