(int size)
| 2298 | |
| 2299 | |
| 2300 | protected static ByteBuffer allocateByteBuffer(int size) { |
| 2301 | if (USE_DIRECT_BUFFERS) { |
| 2302 | return allocateDirectByteBuffer(size); |
| 2303 | } else { |
| 2304 | return ByteBuffer.allocate(size); |
| 2305 | } |
| 2306 | } |
| 2307 | |
| 2308 | |
| 2309 | protected static ByteBuffer allocateByteBuffer(byte[] arr) { |
no test coverage detected