(long ptr, int size)
| 6 | static { Library.staticLoad(); } |
| 7 | |
| 8 | public static ByteBuffer getByteBufferFromPointer(long ptr, int size) { |
| 9 | ByteBuffer result = _nGetByteBufferFromPointer(ptr, size); |
| 10 | if (result == null) |
| 11 | throw new IllegalArgumentException("JNI direct buffer access not support by current JVM!"); |
| 12 | return result; |
| 13 | } |
| 14 | |
| 15 | public static long getPointerFromByteBuffer(ByteBuffer buffer) { |
| 16 | long result = _nGetPointerFromByteBuffer(buffer); |
no test coverage detected