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

Method Skip

connection_impl.go:154–159  ·  view source on GitHub ↗

Skip implements Connection.

(n int)

Source from the content-addressed store, hash-verified

152
153// Skip implements Connection.
154func (c *connection) Skip(n int) (err error) {
155 if err = c.waitRead(n); err != nil {
156 return err
157 }
158 return c.inputBuffer.Skip(n)
159}
160
161// Release implements Connection.
162func (c *connection) Release() (err error) {

Callers

nothing calls this directly

Calls 2

waitReadMethod · 0.95
SkipMethod · 0.65

Tested by

no test coverage detected