(int size)
| 2475 | |
| 2476 | |
| 2477 | protected static IntBuffer allocateDirectIntBuffer(int size) { |
| 2478 | int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_INT; |
| 2479 | return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder()). |
| 2480 | asIntBuffer(); |
| 2481 | } |
| 2482 | |
| 2483 | |
| 2484 | protected static IntBuffer allocateIntBuffer(int size) { |
no test coverage detected