jnr.ffi.provider.jffi.DirectStructParameterStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnr-unixsocket-nodep Show documentation
Show all versions of jnr-unixsocket-nodep Show documentation
com.github.jnr:jnr-unixsocket with orh.objectweb.asm shaded
package jnr.ffi.provider.jffi;
import jnr.ffi.Struct;
import jnr.ffi.provider.ParameterFlags;
/**
*
*/
final class DirectStructParameterStrategy extends AbstractDirectPointerParameterStrategy {
static final PointerParameterStrategy INSTANCE = new DirectStructParameterStrategy();
@Override
public long address(Object o) {
return Struct.getMemory((Struct) o, ParameterFlags.DIRECT).address();
}
}