MCPcopy Index your code
hub / github.com/coder/coder / Read

Method Read

vpn/pipe.go:40–46  ·  view source on GitHub ↗

Read implements io.Reader. Data is read from the read pipe.

(p []byte)

Source from the content-addressed store, hash-verified

38
39// Read implements io.Reader. Data is read from the read pipe.
40func (b BidirectionalPipe) Read(p []byte) (int, error) {
41 n, err := b.read.Read(p)
42 if err != nil {
43 return n, xerrors.Errorf("read from pipe_read (fd=%v): %w", b.read.Fd(), err)
44 }
45 return n, nil
46}
47
48// Write implements io.Writer. Data is written to the write pipe.
49func (b BidirectionalPipe) Write(p []byte) (n int, err error) {

Callers

nothing calls this directly

Calls 2

ReadMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected