MCPcopy
hub / github.com/gofiber/fiber / Read

Method Read

helpers.go:851–856  ·  view source on GitHub ↗

Read implements net.Conn by reading from the buffered input.

(b []byte)

Source from the content-addressed store, hash-verified

849
850// Read implements net.Conn by reading from the buffered input.
851func (c *testConn) Read(b []byte) (int, error) {
852 c.Lock()
853 defer c.Unlock()
854
855 return c.r.Read(b) //nolint:wrapcheck // This must not be wrapped
856}
857
858// Write implements net.Conn by appending to the buffered output.
859func (c *testConn) Write(b []byte) (int, error) {

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65