()
| 93 | } |
| 94 | |
| 95 | func newBuffer() *buffer { |
| 96 | return bufferObjectPool.Get().(*buffer) |
| 97 | } |
| 98 | |
| 99 | // NewBuffer creates a new Buffer from the given data, initializing the reference |
| 100 | // counter to 1. The data will then be returned to the given pool when all |