MCPcopy Index your code
hub / github.com/cortesi/devd / Read

Method Read

slowdown/slowdown.go:86–88  ·  view source on GitHub ↗

Read reads data from the connection. Read can be made to time out and return a Error with Timeout() == true after a fixed time limit; see SetDeadline and SetReadDeadline.

(b []byte)

Source from the content-addressed store, hash-verified

84// Read can be made to time out and return a Error with Timeout() == true
85// after a fixed time limit; see SetDeadline and SetReadDeadline.
86func (sc *SlowConn) Read(b []byte) (n int, err error) {
87 return sc.reader.Read(b)
88}
89
90// Write writes data to the connection.
91// Write can be made to time out and return a Error with Timeout() == true

Callers 3

TestWriterFunction · 0.45
TestReaderFunction · 0.45
ReadMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestWriterFunction · 0.36
TestReaderFunction · 0.36