@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); }
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); }
private final NativeFunctionInfo newFunctionInfo(Ruby runtime, CallbackInfo cbInfo) { org.jruby.ext.ffi.Type[] paramTypes = cbInfo.getParameterTypes(); for (int i = 0; i < paramTypes.length; ++i) { if (!isParameterTypeValid(paramTypes[i]) || FFIUtil.getFFIType(paramTypes[i]) == null) { throw runtime.newTypeError("invalid callback parameter type: " + paramTypes[i]); } } if (!isReturnTypeValid(cbInfo.getReturnType()) || FFIUtil.getFFIType(cbInfo.getReturnType()) == null) { runtime.newTypeError("invalid callback return type: " + cbInfo.getReturnType()); } return new NativeFunctionInfo(runtime, cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT); }
private final NativeFunctionInfo newFunctionInfo(Ruby runtime, CallbackInfo cbInfo) { org.jruby.ext.ffi.Type[] paramTypes = cbInfo.getParameterTypes(); for (int i = 0; i < paramTypes.length; ++i) { if (!isParameterTypeValid(paramTypes[i]) || FFIUtil.getFFIType(paramTypes[i]) == null) { throw runtime.newTypeError("invalid callback parameter type: " + paramTypes[i]); } } if (!isReturnTypeValid(cbInfo.getReturnType()) || FFIUtil.getFFIType(cbInfo.getReturnType()) == null) { throw runtime.newTypeError("invalid callback return type: " + cbInfo.getReturnType()); } return new NativeFunctionInfo(runtime, cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT); }
private final NativeFunctionInfo newFunctionInfo(Ruby runtime, CallbackInfo cbInfo) { org.jruby.ext.ffi.Type[] paramTypes = cbInfo.getParameterTypes(); for (int i = 0; i < paramTypes.length; ++i) { if (!isParameterTypeValid(paramTypes[i]) || FFIUtil.getFFIType(paramTypes[i]) == null) { throw runtime.newTypeError("invalid callback parameter type: " + paramTypes[i]); } } if (!isReturnTypeValid(cbInfo.getReturnType()) || FFIUtil.getFFIType(cbInfo.getReturnType()) == null) { throw runtime.newTypeError("invalid callback return type: " + cbInfo.getReturnType()); } return new NativeFunctionInfo(runtime, cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT); }
private final NativeFunctionInfo newFunctionInfo(Ruby runtime, CallbackInfo cbInfo) { org.jruby.ext.ffi.Type[] paramTypes = cbInfo.getParameterTypes(); for (int i = 0; i < paramTypes.length; ++i) { if (!isParameterTypeValid(paramTypes[i]) || FFIUtil.getFFIType(paramTypes[i]) == null) { throw runtime.newTypeError("invalid callback parameter type: " + paramTypes[i]); } } if (!isReturnTypeValid(cbInfo.getReturnType()) || FFIUtil.getFFIType(cbInfo.getReturnType()) == null) { runtime.newTypeError("invalid callback return type: " + cbInfo.getReturnType()); } return new NativeFunctionInfo(runtime, cbInfo.getReturnType(), cbInfo.getParameterTypes(), cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT); }
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)