WriteDirect cannot be mixed with WriteString or WriteBinary functions.
(p []byte, remainLen int)
| 161 | |
| 162 | // WriteDirect cannot be mixed with WriteString or WriteBinary functions. |
| 163 | func (b *SafeLinkBuffer) WriteDirect(p []byte, remainLen int) error { |
| 164 | b.Lock() |
| 165 | defer b.Unlock() |
| 166 | return b.UnsafeLinkBuffer.WriteDirect(p, remainLen) |
| 167 | } |
| 168 | |
| 169 | // WriteByte implements Writer. |
| 170 | func (b *SafeLinkBuffer) WriteByte(p byte) (err error) { |
nothing calls this directly
no test coverage detected