@Override public CallbackManager getCallbackManager() { return CallbackManager.getInstance(); }
@Override public CallbackManager getCallbackManager() { return CallbackManager.getInstance(); }
@Override public CallbackManager getCallbackManager() { return CallbackManager.getInstance(); }
@Override public CallbackManager getCallbackManager() { return CallbackManager.getInstance(); }
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; }
? CallingConvention.STDCALL : CallingConvention.DEFAULT; if (fptr == null && proc != null) { fptr = CallbackManager.getInstance().newClosure(context.runtime, returnType, parameterTypes, proc, callConvention);
? CallingConvention.STDCALL : CallingConvention.DEFAULT; if (fptr == null && proc != null) { fptr = CallbackManager.getInstance().newClosure(context.runtime, returnType, parameterTypes, proc, callConvention);
? CallingConvention.STDCALL : CallingConvention.DEFAULT; if (fptr == null && proc != null) { fptr = CallbackManager.getInstance().newClosure(context.runtime, returnType, parameterTypes, proc, callConvention);
? CallingConvention.STDCALL : CallingConvention.DEFAULT; if (fptr == null && proc != null) { fptr = CallbackManager.getInstance().newClosure(context.runtime, returnType, parameterTypes, proc, callConvention);