busy returns true if the read buffer is not empty.
()
| 39 | |
| 40 | // busy returns true if the read buffer is not empty. |
| 41 | func (b *buffer) busy() bool { |
| 42 | return len(b.buf) > 0 |
| 43 | } |
| 44 | |
| 45 | // len returns how many bytes in the read buffer. |
| 46 | func (b *buffer) len() int { |
no outgoing calls
no test coverage detected