WriteDirect implements Connection.
(p []byte, remainCap int)
| 307 | |
| 308 | // WriteDirect implements Connection. |
| 309 | func (c *connection) WriteDirect(p []byte, remainCap int) (err error) { |
| 310 | if !c.IsActive() { |
| 311 | return Exception(ErrConnClosed, "when write direct") |
| 312 | } |
| 313 | return c.outputBuffer.WriteDirect(p, remainCap) |
| 314 | } |
| 315 | |
| 316 | // WriteByte implements Connection. |
| 317 | func (c *connection) WriteByte(b byte) (err error) { |