public final org.jruby.ext.ffi.Pointer getCallback(Ruby runtime, CallbackInfo cbInfo, Object proc) { return proc instanceof RubyObject ? getCallbackFactory(runtime, cbInfo).getCallback((RubyObject) proc) : getCallbackFactory(runtime, cbInfo).newCallback(proc); }
public final org.jruby.ext.ffi.Pointer getCallback(Ruby runtime, CallbackInfo cbInfo, Object proc) { return proc instanceof RubyObject ? getCallbackFactory(runtime, cbInfo).getCallback((RubyObject) proc) : getCallbackFactory(runtime, cbInfo).newCallback(proc); }
public final org.jruby.ext.ffi.Pointer getCallback(Ruby runtime, CallbackInfo cbInfo, Object proc) { return proc instanceof RubyObject ? getCallbackFactory(runtime, cbInfo).getCallback((RubyObject) proc) : getCallbackFactory(runtime, cbInfo).newCallback(proc); }
public final org.jruby.ext.ffi.Pointer getCallback(Ruby runtime, CallbackInfo cbInfo, Object proc) { return proc instanceof RubyObject ? getCallbackFactory(runtime, cbInfo).getCallback((RubyObject) proc) : getCallbackFactory(runtime, cbInfo).newCallback(proc); }
public CallbackDataConverter(CallbackInfo cbInfo) { this.callbackFactory = CallbackManager.getInstance().getCallbackFactory(cbInfo.getRuntime(), cbInfo); this.functionInfo = new NativeFunctionInfo(cbInfo.getRuntime(), cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT); }
public CallbackDataConverter(CallbackInfo cbInfo) { this.callbackFactory = CallbackManager.getInstance().getCallbackFactory(cbInfo.getRuntime(), cbInfo); this.functionInfo = new NativeFunctionInfo(cbInfo.getRuntime(), cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT); }
public CallbackDataConverter(CallbackInfo cbInfo) { this.callbackFactory = CallbackManager.getInstance().getCallbackFactory(cbInfo.getRuntime(), cbInfo); this.functionInfo = new NativeFunctionInfo(cbInfo.getRuntime(), cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT); }
public CallbackDataConverter(CallbackInfo cbInfo) { this.callbackFactory = CallbackManager.getInstance().getCallbackFactory(cbInfo.getRuntime(), cbInfo); this.functionInfo = new NativeFunctionInfo(cbInfo.getRuntime(), cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT); }
public NativeInvoker(RubyModule implementationClass, com.kenai.jffi.Function function, Signature signature) { super(implementationClass, Visibility.PUBLIC, CallConfiguration.FrameNoneScopeNone); this.arity = Arity.fixed(signature.getParameterCount()); this.function = function; this.signature = signature; int cbIndex = -1; NativeCallbackFactory cbFactory = null; for (int i = 0; i < signature.getParameterCount(); ++i) { if (signature.getParameterType(i) instanceof CallbackInfo) { cbFactory = CallbackManager.getInstance().getCallbackFactory(implementationClass.getRuntime(), (CallbackInfo) signature.getParameterType(i)); cbIndex = i; break; } } this.cbIndex = cbIndex; this.cbFactory = cbFactory; }
public NativeInvoker(RubyModule implementationClass, com.kenai.jffi.Function function, Signature signature) { super(implementationClass, Visibility.PUBLIC, CallConfiguration.FrameNoneScopeNone); this.arity = Arity.fixed(signature.getParameterCount()); this.function = function; this.signature = signature; int cbIndex = -1; NativeCallbackFactory cbFactory = null; for (int i = 0; i < signature.getParameterCount(); ++i) { if (signature.getParameterType(i) instanceof CallbackInfo) { cbFactory = CallbackManager.getInstance().getCallbackFactory(implementationClass.getRuntime(), (CallbackInfo) signature.getParameterType(i)); cbIndex = i; break; } } this.cbIndex = cbIndex; this.cbFactory = cbFactory; }
public NativeInvoker(RubyModule implementationClass, com.kenai.jffi.Function function, Signature signature) { super(implementationClass, Visibility.PUBLIC, "ffi"+function.getFunctionAddress()); this.arity = Arity.fixed(signature.getParameterCount()); this.function = function; this.signature = signature; int cbIndex = -1; NativeCallbackFactory cbFactory = null; for (int i = 0; i < signature.getParameterCount(); ++i) { if (signature.getParameterType(i) instanceof CallbackInfo) { cbFactory = CallbackManager.getInstance().getCallbackFactory(implementationClass.getRuntime(), (CallbackInfo) signature.getParameterType(i)); cbIndex = i; break; } } this.cbIndex = cbIndex; this.cbFactory = cbFactory; }
public NativeInvoker(RubyModule implementationClass, com.kenai.jffi.Function function, Signature signature) { super(implementationClass, Visibility.PUBLIC, "ffi"+function.getFunctionAddress()); this.arity = Arity.fixed(signature.getParameterCount()); this.function = function; this.signature = signature; int cbIndex = -1; NativeCallbackFactory cbFactory = null; for (int i = 0; i < signature.getParameterCount(); ++i) { if (signature.getParameterType(i) instanceof CallbackInfo) { cbFactory = CallbackManager.getInstance().getCallbackFactory(implementationClass.getRuntime(), (CallbackInfo) signature.getParameterType(i)); cbIndex = i; break; } } this.cbIndex = cbIndex; this.cbFactory = cbFactory; }