| Package | Description |
|---|---|
| org.jruby.ext.ffi | |
| org.jruby.ext.ffi.jffi |
| Modifier and Type | Class and Description |
|---|---|
class |
CallbackInfo
Defines a C callback's parameters and return type.
|
class |
MappedType
A type which represents a conversion to/from a native type.
|
class |
StructByValue |
class |
StructLayout
Defines the memory layout for a native structure.
|
static class |
Type.Array |
static class |
Type.Builtin |
| Modifier and Type | Field and Description |
|---|---|
private Type |
Type.Array.componentType |
protected Type[] |
CallbackInfo.parameterTypes |
private Type |
MappedType.realType |
protected Type |
CallbackInfo.returnType |
(package private) Type |
StructLayout.Member.type
The
Type of this member. |
private Type |
StructLayout.Field.type
The
Type of this field. |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<RubySymbol,Type> |
TypeResolver.symbolTypeCache |
| Modifier and Type | Method and Description |
|---|---|
(package private) Type |
StructLayout.Field.checkType(IRubyObject type) |
Type |
StructLayout.Field.ffiType() |
Type |
TypeResolver.findType(Ruby runtime,
IRubyObject name) |
Type |
TypeResolver.findType(Ruby runtime,
IRubyObject name,
IRubyObject typeMap) |
static Type |
Util.findType(ThreadContext context,
IRubyObject name) |
static Type |
Util.findType(ThreadContext context,
IRubyObject name,
IRubyObject typeMap) |
Type |
Type.Array.getComponentType() |
Type[] |
CallbackInfo.getParameterTypes()
Gets the ruby parameter types of the callback
|
Type |
MappedType.getRealType() |
Type |
CallbackInfo.getReturnType()
Gets the native return type the callback should return
|
private Type |
TypeResolver.lookupAndCacheType(Ruby runtime,
RubySymbol name,
RubyHash typeMap) |
private Type |
TypeResolver.lookupType(Ruby runtime,
IRubyObject name) |
private Type |
TypeResolver.lookupType(Ruby runtime,
IRubyObject name,
IRubyObject typeMap) |
Type |
StructLayout.Member.type() |
| Modifier and Type | Method and Description |
|---|---|
static MemoryOp |
MemoryOp.getMemoryOp(Type type) |
static MemoryOp |
MemoryOp.getMemoryOp(Type type,
java.nio.ByteOrder order) |
| Constructor and Description |
|---|
Array(Ruby runtime,
RubyClass klass,
Type componentType,
int length)
Initializes a new Type.Array instance.
|
Array(Ruby runtime,
Type componentType,
int length)
Initializes a new Type.Array instance.
|
CallbackInfo(Ruby runtime,
RubyClass klazz,
Type returnType,
Type[] paramTypes,
boolean stdcall)
Creates a new CallbackInfo instance.
|
CallbackInfo(Ruby runtime,
RubyClass klazz,
Type returnType,
Type[] paramTypes,
boolean stdcall)
Creates a new CallbackInfo instance.
|
Field(Ruby runtime,
RubyClass klass,
Type type,
int offset,
StructLayout.FieldIO io) |
MappedType(Ruby runtime,
RubyClass klass,
Type nativeType,
IRubyObject converter,
boolean isRefererenceRequired) |
NumberFieldIO(Type type,
java.nio.ByteOrder order) |
| Modifier and Type | Field and Description |
|---|---|
private Type[] |
JFFIInvoker.parameterTypes |
(package private) Type[] |
NativeFunctionInfo.parameterTypes |
private Type[] |
Signature.parameterTypes |
private Type |
Signature.resultType |
private Type |
JFFIInvoker.returnType |
(package private) Type |
NativeFunctionInfo.returnType |
| Modifier and Type | Method and Description |
|---|---|
Type |
Signature.getParameterType(int parameterIndex) |
Type |
Signature.getResultType() |
| Modifier and Type | Method and Description |
|---|---|
private static com.kenai.jffi.Type |
FFIUtil.cacheFFIType(Type type) |
static DynamicMethod |
MethodFactory.createDynamicMethod(Ruby runtime,
RubyModule module,
com.kenai.jffi.Function function,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums,
boolean ignoreErrno) |
static DynamicMethod |
MethodFactory.createDynamicMethod(Ruby runtime,
RubyModule module,
com.kenai.jffi.Function function,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums,
boolean ignoreErrno) |
(package private) DynamicMethod |
DefaultMethodFactory.createMethod(RubyModule module,
com.kenai.jffi.Function function,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums,
boolean ignoreError) |
(package private) DynamicMethod |
DefaultMethodFactory.createMethod(RubyModule module,
com.kenai.jffi.Function function,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums,
boolean ignoreError) |
(package private) abstract DynamicMethod |
MethodFactory.createMethod(RubyModule module,
com.kenai.jffi.Function function,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums,
boolean ignoreErrno) |
(package private) abstract DynamicMethod |
MethodFactory.createMethod(RubyModule module,
com.kenai.jffi.Function function,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums,
boolean ignoreErrno) |
private static IRubyObject |
NativeClosureProxy.fromNative(Ruby runtime,
Type type,
com.kenai.jffi.Closure.Buffer buffer,
int index)
Converts a native value into a ruby object.
|
(package private) static ParameterMarshaller |
DefaultMethodFactory.getEnumMarshaller(Type type,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums)
Gets a marshaller to convert from a ruby type to a native type.
|
(package private) static com.kenai.jffi.Type |
FFIUtil.getFFIType(Type type) |
(package private) static FunctionInvoker |
DefaultMethodFactory.getFunctionInvoker(Type returnType) |
(package private) static ParameterMarshaller |
DefaultMethodFactory.getMarshaller(Type type,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums)
Gets a marshaller to convert from a ruby type to a native type.
|
(package private) static NativeDataConverter |
DataConverters.getParameterConverter(Type type) |
(package private) static NativeDataConverter |
DataConverters.getParameterConverter(Type type,
Enums enums) |
(package private) static NativeDataConverter |
DataConverters.getParameterConverter(Type type,
RubyHash enums)
Deprecated.
|
(package private) static NativeDataConverter |
DataConverters.getResultConverter(Type type) |
(package private) static boolean |
DataConverters.isEnumConversionRequired(Type type,
Enums enums) |
(package private) static boolean |
DataConverters.isEnumConversionRequired(Type type,
RubyHash enums)
Deprecated.
|
private static boolean |
NativeCallbackFactory.isParameterTypeValid(Type type)
Checks if a type is a valid parameter type for a callback
|
private static boolean |
NativeCallbackFactory.isReturnTypeValid(Type type)
Checks if a type is a valid callback return type
|
(package private) boolean |
DefaultMethodFactory.isSupported(Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention) |
(package private) boolean |
DefaultMethodFactory.isSupported(Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention) |
(package private) abstract boolean |
MethodFactory.isSupported(Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention) |
(package private) abstract boolean |
MethodFactory.isSupported(Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention) |
(package private) CallbackMemoryIO |
CallbackManager.newClosure(Ruby runtime,
Type returnType,
Type[] parameterTypes,
java.lang.Object proc,
com.kenai.jffi.CallingConvention convention) |
(package private) CallbackMemoryIO |
CallbackManager.newClosure(Ruby runtime,
Type returnType,
Type[] parameterTypes,
java.lang.Object proc,
com.kenai.jffi.CallingConvention convention) |
private static void |
NativeClosureProxy.setReturnValue(Ruby runtime,
Type type,
com.kenai.jffi.Closure.Buffer buffer,
IRubyObject value)
Converts a ruby return value into a native callback return value.
|
| Constructor and Description |
|---|
Function(Ruby runtime,
RubyClass klass,
MemoryIO address,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums,
boolean saveError) |
Function(Ruby runtime,
RubyClass klass,
MemoryIO address,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums,
boolean saveError) |
JFFIInvoker(Ruby runtime,
long address,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention) |
JFFIInvoker(Ruby runtime,
long address,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention) |
JFFIInvoker(Ruby runtime,
RubyClass klass,
MemoryIO fptr,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums) |
JFFIInvoker(Ruby runtime,
RubyClass klass,
MemoryIO fptr,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums) |
NativeFunctionInfo(Ruby runtime,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention) |
NativeFunctionInfo(Ruby runtime,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention) |
Signature(Type resultType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
boolean ignoreError,
RubyHash enums) |
Signature(Type resultType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
boolean ignoreError,
RubyHash enums) |