AcquireByteBuffer returns new ByteBuffer from the pool. Return unneeded buffers to the pool by calling ReleaseByteBuffer in order to reduce memory allocations.
()
| 27 | // Return unneeded buffers to the pool by calling ReleaseByteBuffer |
| 28 | // in order to reduce memory allocations. |
| 29 | func AcquireByteBuffer() *ByteBuffer { |
| 30 | return (*ByteBuffer)(byteBufferPool.Get()) |
| 31 | } |
| 32 | |
| 33 | // ReleaseByteBuffer retruns byte buffer to the pool. |
| 34 | // |
no outgoing calls
searching dependent graphs…