JFFIInvoker(Ruby runtime, long address, Type returnType, Type[] parameterTypes, CallingConvention convention) { this(runtime, runtime.getModule("FFI").getClass("Invoker"), new CodeMemoryIO(runtime, address), returnType, parameterTypes, convention, null); }
JFFIInvoker(Ruby runtime, long address, Type returnType, Type[] parameterTypes, CallingConvention convention) { this(runtime, runtime.getModule("FFI").getClass("Invoker"), new CodeMemoryIO(runtime, address), returnType, parameterTypes, convention, null); }
JFFIInvoker(Ruby runtime, long address, Type returnType, Type[] parameterTypes, CallingConvention convention) { this(runtime, runtime.getModule("FFI").getClass("Invoker"), new CodeMemoryIO(runtime, address), returnType, parameterTypes, convention, null); }
JFFIInvoker(Ruby runtime, long address, Type returnType, Type[] parameterTypes, CallingConvention convention) { this(runtime, runtime.getModule("FFI").getClass("Invoker"), new CodeMemoryIO(runtime, address), returnType, parameterTypes, convention, null); }
public IRubyObject fromNative(ThreadContext context, IRubyObject obj) { if (!(obj instanceof Pointer)) { throw context.runtime.newTypeError("internal error: non-pointer"); } Pointer ptr = (Pointer) obj; if (ptr.getAddress() == 0) { return context.nil; } return new org.jruby.ext.ffi.jffi.Function(context.runtime, context.runtime.getModule("FFI").getClass("Function"), new CodeMemoryIO(context.runtime, ptr), functionInfo, null); }
public IRubyObject fromNative(ThreadContext context, IRubyObject obj) { if (!(obj instanceof Pointer)) { throw context.runtime.newTypeError("internal error: non-pointer"); } Pointer ptr = (Pointer) obj; if (ptr.getAddress() == 0) { return context.nil; } return new org.jruby.ext.ffi.jffi.Function(context.runtime, context.runtime.getModule("FFI").getClass("Function"), new CodeMemoryIO(context.runtime, ptr), functionInfo, null); }
public IRubyObject fromNative(ThreadContext context, IRubyObject obj) { if (!(obj instanceof Pointer)) { throw context.runtime.newTypeError("internal error: non-pointer"); } Pointer ptr = (Pointer) obj; if (ptr.getAddress() == 0) { return context.runtime.getNil(); } return new org.jruby.ext.ffi.jffi.Function(context.runtime, context.runtime.getModule("FFI").getClass("Function"), new CodeMemoryIO(context.runtime, ptr), functionInfo, null); }
public IRubyObject fromNative(ThreadContext context, IRubyObject obj) { if (!(obj instanceof Pointer)) { throw context.runtime.newTypeError("internal error: non-pointer"); } Pointer ptr = (Pointer) obj; if (ptr.getAddress() == 0) { return context.runtime.getNil(); } return new org.jruby.ext.ffi.jffi.Function(context.runtime, context.runtime.getModule("FFI").getClass("Function"), new CodeMemoryIO(context.runtime, ptr), functionInfo, null); }
@Override public Function newFunction(Ruby runtime, Pointer address, CallbackInfo cbInfo) { CodeMemoryIO mem = new CodeMemoryIO(runtime, address); RubyClass klass = runtime.getModule("FFI").getClass("Function"); return new Function(runtime, klass, mem, cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT, null, false); }
@Override public Function newFunction(Ruby runtime, Pointer address, CallbackInfo cbInfo) { CodeMemoryIO mem = new CodeMemoryIO(runtime, address); RubyClass klass = runtime.getModule("FFI").getClass("Function"); return new Function(runtime, klass, mem, cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT, null, false); }
@Override public Function newFunction(Ruby runtime, Pointer address, CallbackInfo cbInfo) { CodeMemoryIO mem = new CodeMemoryIO(runtime, address); RubyClass klass = runtime.getModule("FFI").getClass("Function"); return new Function(runtime, klass, mem, cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT, null, false); }
@Override public Function newFunction(Ruby runtime, Pointer address, CallbackInfo cbInfo) { CodeMemoryIO mem = new CodeMemoryIO(runtime, address); RubyClass klass = runtime.getModule("FFI").getClass("Function"); return new Function(runtime, klass, mem, cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT, null, false); }
fptr = new CodeMemoryIO(context.runtime, (Pointer) args[2]); optionsIndex = 3; } else if (args.length > 2 && (args[2] instanceof RubyProc || args[2].respondsTo("call"))) {
fptr = new CodeMemoryIO(context.runtime, (Pointer) args[2]); optionsIndex = 3; } else if (args.length > 2 && (args[2] instanceof RubyProc || args[2].respondsTo("call"))) {
fptr = new CodeMemoryIO(context.runtime, (Pointer) args[2]); optionsIndex = 3; } else if (args.length > 2 && (args[2] instanceof RubyProc || args[2].respondsTo("call"))) {
fptr = new CodeMemoryIO(context.runtime, (Pointer) args[2]); optionsIndex = 3; } else if (args.length > 2 && (args[2] instanceof RubyProc || args[2].respondsTo("call"))) {
new CodeMemoryIO(runtime, address), cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT, runtime.getNil(), false)
new CodeMemoryIO(runtime, address), cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT, runtime.getNil(), false)
new CodeMemoryIO(runtime, address), cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT, runtime.getNil(), false)
new CodeMemoryIO(runtime, address), cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT, runtime.getNil(), false)