ReadBinary implements Connection.
(n int)
| 224 | |
| 225 | // ReadBinary implements Connection. |
| 226 | func (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. |
| 234 | func (c *connection) ReadByte() (b byte, err error) { |
nothing calls this directly
no test coverage detected