(IntBuffer buf, int i0, int i1, int val)
| 2556 | |
| 2557 | |
| 2558 | protected static void fillIntBuffer(IntBuffer buf, int i0, int i1, int val) { |
| 2559 | int n = i1 - i0; |
| 2560 | int[] temp = new int[n]; |
| 2561 | Arrays.fill(temp, 0, n, val); |
| 2562 | buf.position(i0); |
| 2563 | buf.put(temp, 0, n); |
| 2564 | buf.rewind(); |
| 2565 | } |
| 2566 | |
| 2567 | |
| 2568 | protected static FloatBuffer allocateDirectFloatBuffer(int size) { |
no test coverage detected