MCPcopy
hub / github.com/perkeep/perkeep / Write

Method Write

pkg/server/sync.go:1030–1036  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

1028}
1029
1030func (w incrWriter) Write(p []byte) (n int, err error) {
1031 w.cs.mu.Lock()
1032 *w.n += uint32(len(p))
1033 w.cs.t = time.Now()
1034 w.cs.mu.Unlock()
1035 return len(p), nil
1036}
1037
1038func storageDesc(v interface{}) string {
1039 if s, ok := v.(fmt.Stringer); ok {

Callers 10

CommitBatchMethod · 0.45
ServeHTTPMethod · 0.45
discoveryHelperFunction · 0.45
serveQRMethod · 0.45
serveDepsJSFunction · 0.45
handleMasterQueryMethod · 0.45
mapJSONFunction · 0.45
prettyPrintFunction · 0.45
dumpGoroutinesFunction · 0.45
ServeHTTPMethod · 0.45

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by 1

prettyPrintFunction · 0.36