MCPcopy Index your code
hub / github.com/docker/cli / Write

Method Write

cli/connhelper/commandconn/commandconn.go:287–296  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

285}
286
287func (w *stderrWriter) Write(p []byte) (int, error) {
288 logrus.Debugf("%s%s", w.debugPrefix, string(p))
289 w.stderrMu.Lock()
290 if w.stderr.Len() > 4096 {
291 w.stderr.Reset()
292 }
293 n, err := w.stderr.Write(p)
294 w.stderrMu.Unlock()
295 return n, err
296}

Callers

nothing calls this directly

Calls 2

LenMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected