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

Method ReadByte

connection_impl.go:234–239  ·  view source on GitHub ↗

ReadByte implements Connection.

()

Source from the content-addressed store, hash-verified

232
233// ReadByte implements Connection.
234func (c *connection) ReadByte() (b byte, err error) {
235 if err = c.waitRead(1); err != nil {
236 return b, err
237 }
238 return c.inputBuffer.ReadByte()
239}
240
241// ------------------------------------------ implement zero-copy writer ------------------------------------------
242

Callers

nothing calls this directly

Calls 2

waitReadMethod · 0.95
ReadByteMethod · 0.65

Tested by

no test coverage detected