MCPcopy
hub / github.com/git-lfs/git-lfs / Write

Method Write

tools/sync_writer.go:45–50  ·  view source on GitHub ↗

Write will write to the file and perform a Sync() if writing succeeds.

(b []byte)

Source from the content-addressed store, hash-verified

43
44// Write will write to the file and perform a Sync() if writing succeeds.
45func (w *SyncWriter) Write(b []byte) error {
46 if _, err := w.w.Write(b); err != nil {
47 return err
48 }
49 return w.syncFn()
50}
51
52// Close will call Close() on the underlying file
53func (w *SyncWriter) Close() error {

Callers 2

fillFileFunction · 0.45
ReadMethod · 0.45

Calls

no outgoing calls

Tested by 1

fillFileFunction · 0.36