Method
fillByteBuffer
(ByteBuffer buf, int i0, int i1,
byte val)
Source from the content-addressed store, hash-verified
| 2372 | |
| 2373 | |
| 2374 | protected static void fillByteBuffer(ByteBuffer buf, int i0, int i1, |
| 2375 | byte val) { |
| 2376 | int n = i1 - i0; |
| 2377 | byte[] temp = new byte[n]; |
| 2378 | Arrays.fill(temp, 0, n, val); |
| 2379 | buf.position(i0); |
| 2380 | buf.put(temp, 0, n); |
| 2381 | buf.rewind(); |
| 2382 | } |
| 2383 | |
| 2384 | |
| 2385 | protected static ShortBuffer allocateDirectShortBuffer(int size) { |
Callers
nothing calls this directly
Tested by
no test coverage detected