IsBelowBufferPoolingThreshold returns true if the given size is less than or equal to the threshold for buffer pooling. This is used to determine whether to pool buffers or allocate them directly.
(size int)
| 72 | // equal to the threshold for buffer pooling. This is used to determine whether |
| 73 | // to pool buffers or allocate them directly. |
| 74 | func IsBelowBufferPoolingThreshold(size int) bool { |
| 75 | return size <= bufferPoolingThreshold |
| 76 | } |
| 77 | |
| 78 | type buffer struct { |
| 79 | refs atomic.Int32 |
no outgoing calls
no test coverage detected