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

Method ReadBinary

connection_impl.go:226–231  ·  view source on GitHub ↗

ReadBinary implements Connection.

(n int)

Source from the content-addressed store, hash-verified

224
225// ReadBinary implements Connection.
226func (c *connection) ReadBinary(n int) (p []byte, err error) {
227 if err = c.waitRead(n); err != nil {
228 return p, err
229 }
230 return c.inputBuffer.ReadBinary(n)
231}
232
233// ReadByte implements Connection.
234func (c *connection) ReadByte() (b byte, err error) {

Callers

nothing calls this directly

Calls 2

waitReadMethod · 0.95
ReadBinaryMethod · 0.65

Tested by

no test coverage detected