All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jnr.ffi.provider.jffi.DirectBufferMemoryParameterStrategy Maven / Gradle / Ivy

There is a newer version: 0.3.1
Show newest version
package jnr.ffi.provider.jffi;

import jnr.ffi.provider.AbstractBufferMemoryIO;

/**
 *
 */
final class DirectBufferMemoryParameterStrategy extends AbstractDirectPointerParameterStrategy {
    static final PointerParameterStrategy INSTANCE = new DirectBufferMemoryParameterStrategy();

    @Override
    public long address(Object o) {
        AbstractBufferMemoryIO bufferMemoryIO = (AbstractBufferMemoryIO) o;
        return AsmRuntime.longValue(bufferMemoryIO.getByteBuffer());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy