MCPcopy
hub / github.com/monasticacademy/httptap / Write

Method Write

experiments/gvisor-intercept/intercept.go:47–58  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

45}
46
47func (e *endpointWriter) Write(p []byte) (int, error) {
48 var r bytes.Reader
49 r.Reset(p)
50 n, err := e.ep.Write(&r, tcpip.WriteOptions{})
51 if err != nil {
52 return int(n), &tcpipError{err}
53 }
54 if n != int64(len(p)) {
55 return int(n), io.ErrShortWrite
56 }
57 return int(n), nil
58}
59
60var isVerbose bool
61

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected