newBuffer creates a new buffer from the pool.
()
| 19 | |
| 20 | // newBuffer creates a new buffer from the pool. |
| 21 | func newBuffer() *buffer { |
| 22 | //nolint:forcetypeassert |
| 23 | return bufPool.Get().(*buffer) |
| 24 | } |
| 25 | |
| 26 | // Write writes data to the buffer. |
| 27 | func (b *buffer) Write(p []byte) (n int, err error) { |
no test coverage detected