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

Method ReadString

connection_impl.go:218–223  ·  view source on GitHub ↗

ReadString implements Connection.

(n int)

Source from the content-addressed store, hash-verified

216
217// ReadString implements Connection.
218func (c *connection) ReadString(n int) (s string, err error) {
219 if err = c.waitRead(n); err != nil {
220 return s, err
221 }
222 return c.inputBuffer.ReadString(n)
223}
224
225// ReadBinary implements Connection.
226func (c *connection) ReadBinary(n int) (p []byte, err error) {

Callers

nothing calls this directly

Calls 2

waitReadMethod · 0.95
ReadStringMethod · 0.65

Tested by

no test coverage detected