Package | Description |
---|---|
jnr.ffi | |
jnr.ffi.provider | |
jnr.ffi.provider.jffi |
Modifier and Type | Method and Description |
---|---|
static CallingConvention |
CallingConvention.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CallingConvention[] |
CallingConvention.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
LibraryLoader<T> |
LibraryLoader.convention(CallingConvention convention)
Sets the native function calling convention.
|
Modifier and Type | Field and Description |
---|---|
private CallingConvention |
InterfaceScanner.callingConvention |
private CallingConvention |
NativeFunction.callingConvention |
Modifier and Type | Method and Description |
---|---|
CallingConvention |
NativeFunction.convention() |
Constructor and Description |
---|
InterfaceScanner(java.lang.Class interfaceClass,
SignatureTypeMapper typeMapper,
CallingConvention callingConvention) |
NativeFunction(java.lang.reflect.Method method,
CallingConvention callingConvention) |
Modifier and Type | Field and Description |
---|---|
private CallingConvention |
DefaultInvokerFactory.VariadicInvoker.callingConvention |
private CallingConvention |
ReflectionLibraryLoader.LazyLoader.libraryCallingConvention |
private CallingConvention |
DefaultInvokerFactory.libraryCallingConvention |
Modifier and Type | Method and Description |
---|---|
static CallingConvention |
InvokerUtil.getCallingConvention(java.lang.Class interfaceClass,
java.util.Map<LibraryOption,?> options) |
static CallingConvention |
InvokerUtil.getCallingConvention(java.util.Map<LibraryOption,?> libraryOptions) |
static CallingConvention |
InvokerUtil.getNativeCallingConvention(java.lang.reflect.Method m) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
X86_32StubCompiler.canCompile(ResultType returnType,
ParameterType[] parameterTypes,
CallingConvention convention) |
(package private) abstract boolean |
StubCompiler.canCompile(ResultType returnType,
ParameterType[] parameterTypes,
CallingConvention convention) |
(package private) boolean |
StubCompiler.DummyStubCompiler.canCompile(ResultType returnType,
ParameterType[] parameterTypes,
CallingConvention convention) |
(package private) boolean |
X86_64StubCompiler.canCompile(ResultType returnType,
ParameterType[] parameterTypes,
CallingConvention convention) |
(package private) void |
X86_32StubCompiler.compile(com.kenai.jffi.Function function,
java.lang.String name,
ResultType resultType,
ParameterType[] parameterTypes,
java.lang.Class resultClass,
java.lang.Class[] parameterClasses,
CallingConvention convention,
boolean saveErrno) |
(package private) abstract void |
StubCompiler.compile(com.kenai.jffi.Function function,
java.lang.String name,
ResultType returnType,
ParameterType[] parameterTypes,
java.lang.Class resultClass,
java.lang.Class[] parameterClasses,
CallingConvention convention,
boolean saveErrno) |
(package private) void |
StubCompiler.DummyStubCompiler.compile(com.kenai.jffi.Function function,
java.lang.String name,
ResultType returnType,
ParameterType[] parameterTypes,
java.lang.Class resultClass,
java.lang.Class[] parameterClasses,
CallingConvention convention,
boolean saveErrno) |
(package private) void |
X86_64StubCompiler.compile(com.kenai.jffi.Function function,
java.lang.String name,
ResultType resultType,
ParameterType[] parameterTypes,
java.lang.Class resultClass,
java.lang.Class[] parameterClasses,
CallingConvention convention,
boolean saveErrno) |
(package private) static com.kenai.jffi.CallContext |
InvokerUtil.getCallContext(SigType resultType,
SigType[] parameterTypes,
CallingConvention convention,
boolean requiresErrno) |
(package private) static com.kenai.jffi.CallContext |
InvokerUtil.getCallContext(SigType resultType,
SigType[] parameterTypes,
int paramTypesLength,
CallingConvention convention,
boolean requiresErrno) |
boolean |
BufferMethodGenerator.isSupported(ResultType resultType,
ParameterType[] parameterTypes,
CallingConvention callingConvention) |
boolean |
FastNumericMethodGenerator.isSupported(ResultType resultType,
ParameterType[] parameterTypes,
CallingConvention callingConvention) |
boolean |
MethodGenerator.isSupported(ResultType resultType,
ParameterType[] parameterTypes,
CallingConvention callingConvention) |
boolean |
NotImplMethodGenerator.isSupported(ResultType resultType,
ParameterType[] parameterTypes,
CallingConvention callingConvention) |
boolean |
X86MethodGenerator.isSupported(ResultType resultType,
ParameterType[] parameterTypes,
CallingConvention callingConvention) |
boolean |
FastIntMethodGenerator.isSupported(ResultType resultType,
ParameterType[] parameterTypes,
CallingConvention callingConvention) |
boolean |
FastLongMethodGenerator.isSupported(ResultType resultType,
ParameterType[] parameterTypes,
CallingConvention callingConvention) |
static com.kenai.jffi.CallingConvention |
InvokerUtil.jffiConvention(CallingConvention callingConvention) |
Constructor and Description |
---|
DefaultInvokerFactory(Runtime runtime,
NativeLibrary library,
SignatureTypeMapper typeMapper,
FunctionMapper functionMapper,
CallingConvention libraryCallingConvention,
java.util.Map<LibraryOption,?> libraryOptions,
boolean libraryIsSynchronized) |
VariadicInvoker(Runtime runtime,
DefaultInvokerFactory.FunctionInvoker functionInvoker,
SignatureTypeMapper typeMapper,
ParameterType[] fixedParameterTypes,
long functionAddress,
SigType resultType,
boolean requiresErrno,
CallingConvention callingConvention) |