jnr.ffi.provider.jffi.DirectPointerParameterStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnr-ffi Show documentation
Show all versions of jnr-ffi Show documentation
A library for invoking native functions from java
package jnr.ffi.provider.jffi;
import jnr.ffi.Pointer;
/**
*
*/
final class DirectPointerParameterStrategy extends AbstractDirectPointerParameterStrategy {
static final PointerParameterStrategy INSTANCE = new DirectPointerParameterStrategy();
@Override
public long address(Object o) {
return ((Pointer) o).address();
}
}