| Package | Description |
|---|---|
| org.jruby.ext.ffi | |
| org.jruby.ext.ffi.jffi |
| Modifier and Type | Field and Description |
|---|---|
protected NativeType |
Type.nativeType |
| Modifier and Type | Method and Description |
|---|---|
NativeType |
Type.getNativeType()
Gets the native type of this Type when passed as a parameter
|
static NativeType |
NativeType.valueOf(IRubyObject type) |
static NativeType |
NativeType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NativeType[] |
NativeType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
Factory.alignmentOf(NativeType type) |
int |
NoImplFactory.alignmentOf(NativeType type) |
private static void |
Type.defineBuiltinType(Ruby runtime,
RubyClass builtinClass,
NativeType nativeType,
java.lang.String... names) |
static MemoryOp |
MemoryOp.getMemoryOp(NativeType type) |
static MemoryOp |
MemoryOp.getMemoryOp(NativeType type,
java.nio.ByteOrder order) |
private static int |
Type.getNativeAlignment(NativeType type) |
private static int |
Type.getNativeSize(NativeType type) |
private static boolean |
Type.isPrimitive(NativeType type) |
abstract int |
Factory.sizeOf(NativeType type) |
int |
NoImplFactory.sizeOf(NativeType type) |
| Constructor and Description |
|---|
Builtin(Ruby runtime,
RubyClass klass,
NativeType nativeType,
java.lang.String symName)
Initializes a new BuiltinType instance.
|
Type(Ruby runtime,
RubyClass klass,
NativeType type)
Initializes a new Type instance.
|
Type(Ruby runtime,
RubyClass klass,
NativeType type,
int size,
int alignment)
Initializes a new Type instance.
|
| Modifier and Type | Field and Description |
|---|---|
private NativeType |
DataConverters.IntOrEnumConverter.nativeType |
private NativeType[] |
JITSignature.parameterTypes |
private NativeType |
JITSignature.resultType |
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<NativeType,com.kenai.jffi.Type> |
FFIUtil.typeMap |
| Modifier and Type | Method and Description |
|---|---|
NativeType |
JITSignature.getParameterType(int parameterIndex) |
NativeType |
JITSignature.getResultType() |
NativeType |
DataConverters.IntOrEnumConverter.nativeType() |
NativeType |
DataConverters.MappedDataConverter.nativeType() |
NativeType |
DataConverters.CallbackDataConverter.nativeType() |
NativeType |
DataConverters.ChainedDataConverter.nativeType() |
abstract NativeType |
NativeDataConverter.nativeType() |
| Modifier and Type | Method and Description |
|---|---|
private static java.util.Map<NativeType,com.kenai.jffi.Type> |
FFIUtil.buildTypeMap() |
| Modifier and Type | Method and Description |
|---|---|
int |
Factory.alignmentOf(NativeType type) |
private void |
AbstractNumericMethodGenerator.boxResult(SkinnyMethodAdapter mv,
NativeType type) |
(package private) static com.kenai.jffi.Type |
FFIUtil.getFFIType(NativeType type) |
(package private) static FunctionInvoker |
DefaultMethodFactory.getFunctionInvoker(NativeType returnType) |
(package private) static ParameterMarshaller |
DefaultMethodFactory.getMarshaller(NativeType type)
Gets a marshaller to convert from a ruby type to a native type.
|
private static java.lang.invoke.MethodHandle |
InvokeDynamic.getResultFilter(Ruby runtime,
NativeType nativeType,
java.lang.Class nativeIntClass) |
private static com.kenai.jffi.Type |
Factory.getType(NativeType type) |
(package private) static boolean |
FastIntMethodGenerator.isFastIntParameter(com.kenai.jffi.Platform platform,
NativeType type) |
(package private) static boolean |
FastIntMethodGenerator.isFastIntResult(com.kenai.jffi.Platform platform,
NativeType type) |
private static boolean |
FastIntMethodGenerator.isFastIntType(com.kenai.jffi.Platform platform,
NativeType type) |
(package private) static boolean |
FastLongMethodGenerator.isFastLongParameter(com.kenai.jffi.Platform platform,
NativeType type) |
(package private) static boolean |
FastLongMethodGenerator.isFastLongResult(com.kenai.jffi.Platform platform,
NativeType type) |
private static boolean |
FastLongMethodGenerator.isFastLongType(com.kenai.jffi.Platform platform,
NativeType type) |
(package private) static boolean |
FastNumericMethodGenerator.isFastNumericParameter(com.kenai.jffi.Platform platform,
NativeType type) |
(package private) static boolean |
FastNumericMethodGenerator.isFastNumericResult(com.kenai.jffi.Platform platform,
NativeType type) |
private static boolean |
FastNumericMethodGenerator.isFastNumericType(com.kenai.jffi.Platform platform,
NativeType type) |
int |
Factory.sizeOf(NativeType type) |
| Constructor and Description |
|---|
IntOrEnumConverter(NativeType nativeType,
IRubyObject enums) |
JITSignature(NativeType resultType,
NativeType[] parameterTypes,
boolean hasResultConverter,
boolean[] hasParameterConverter,
com.kenai.jffi.CallingConvention convention,
boolean ignoreError) |
JITSignature(NativeType resultType,
NativeType[] parameterTypes,
boolean hasResultConverter,
boolean[] hasParameterConverter,
com.kenai.jffi.CallingConvention convention,
boolean ignoreError) |