PutByteSlice puts buf back into its sync.Pool.
(buf *[]byte)
| 31 | |
| 32 | // PutByteSlice puts buf back into its sync.Pool. |
| 33 | func PutByteSlice(buf *[]byte) { |
| 34 | byteSlice.Put(buf) |
| 35 | } |
| 36 | |
| 37 | // GetBytesBuffer returns a *bytes.Buffer that is managed by a sync.Pool. |
| 38 | // Returns a buffer that is reset and ready for use. |
searching dependent graphs…