MCPcopy Create free account
hub / github.com/cloudwego/netpoll / Next

Method Next

connection_impl.go:138–143  ·  view source on GitHub ↗

------------------------------------------ implement zero-copy reader ------------------------------------------ Next implements Connection.

(n int)

Source from the content-addressed store, hash-verified

136
137// Next implements Connection.
138func (c *connection) Next(n int) (p []byte, err error) {
139 if err = c.waitRead(n); err != nil {
140 return p, err
141 }
142 return c.inputBuffer.Next(n)
143}
144
145// Peek implements Connection.
146func (c *connection) Peek(n int) (buf []byte, err error) {

Callers 1

UntilMethod · 0.95

Calls 2

waitReadMethod · 0.95
NextMethod · 0.65

Tested by

no test coverage detected