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

org.jruby.ext.ffi.jffi.MemoryObjectParameterStrategy Maven / Gradle / Ivy

package org.jruby.ext.ffi.jffi;

import com.kenai.jffi.ObjectParameterType;
import org.jruby.ext.ffi.MemoryIO;
import org.jruby.ext.ffi.MemoryObject;

/**
 *
 */
final class MemoryObjectParameterStrategy extends PointerParameterStrategy {
    MemoryObjectParameterStrategy(boolean isDirect) {
        super(isDirect, false, ObjectParameterType.create(ObjectParameterType.ARRAY, ObjectParameterType.ComponentType.BYTE));
    }

    public final MemoryIO getMemoryIO(Object parameter) {
        return ((MemoryObject) parameter).getMemoryIO();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy