MCPcopy
hub / github.com/netdata/netdata / Write

Method Write

src/go/plugin/framework/functions/manager_flow_test.go:38–42  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

36}
37
38func (s *safeBuffer) Write(p []byte) (int, error) {
39 s.mu.Lock()
40 defer s.mu.Unlock()
41 return s.b.Write(p)
42}
43
44func (s *safeBuffer) String() string {
45 s.mu.Lock()

Callers

nothing calls this directly

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
WriteMethod · 0.65

Tested by

no test coverage detected