ReleaseByteBuffer retruns byte buffer to the pool. Do not access byte buffer after returning it to the pool, otherwise data races may occur.
(b *ByteBuffer)
| 35 | // Do not access byte buffer after returning it to the pool, |
| 36 | // otherwise data races may occur. |
| 37 | func ReleaseByteBuffer(b *ByteBuffer) { |
| 38 | byteBufferPool.Put(bb(b)) |
| 39 | } |
| 40 | |
| 41 | func bb(b *ByteBuffer) *bytebufferpool.ByteBuffer { |
| 42 | return (*bytebufferpool.ByteBuffer)(b) |
searching dependent graphs…