Slice implements Connection.
(n int)
| 183 | |
| 184 | // Slice implements Connection. |
| 185 | func (c *connection) Slice(n int) (r Reader, err error) { |
| 186 | if err = c.waitRead(n); err != nil { |
| 187 | return nil, err |
| 188 | } |
| 189 | return c.inputBuffer.Slice(n) |
| 190 | } |
| 191 | |
| 192 | // Len implements Connection. |
| 193 | func (c *connection) Len() (length int) { |