org.jruby.ext.ffi.jffi.MemoryIOParameterStrategy 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 MemoryIOParameterStrategy extends PointerParameterStrategy {
MemoryIOParameterStrategy(boolean isDirect) {
super(isDirect, false, ObjectParameterType.create(ObjectParameterType.ARRAY, ObjectParameterType.ComponentType.BYTE));
}
public final MemoryIO getMemoryIO(Object parameter) {
return (MemoryIO) parameter;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy