(ByteBuffer buf, byte[] arr)
| 2421 | |
| 2422 | |
| 2423 | protected static void putByteArray(ByteBuffer buf, byte[] arr) { |
| 2424 | if (!buf.hasArray() || buf.array() != arr) { |
| 2425 | buf.position(0); |
| 2426 | buf.put(arr); |
| 2427 | buf.rewind(); |
| 2428 | } |
| 2429 | } |
| 2430 | |
| 2431 | |
| 2432 | protected static void fillByteBuffer(ByteBuffer buf, int i0, int i1, |