Interface | Description |
---|---|
Closure |
Represents a native closure.
|
Closure.Buffer |
An interface to the native callback parameter buffer.
|
Closure.Handle |
A Handle is allocated by the
ClosureManager , as a strong reference
to the native closure trampoline. |
Class | Description |
---|---|
Aggregate | |
Array |
Describes the layout of a C array
|
ArrayFlags |
Flags to use when adding an array as a pointer parameter
|
CallContext |
Native function call context
This class holds all the information that JFFI needs to correctly call a
native function, or to implement a callback from native code to java.
|
CallContextCache | |
CallContextCache.CallContextRef | |
CallContextCache.Signature | |
CallContextCache.SingletonHolder |
Holder class to do lazy allocation of the ClosureManager instance
|
ClosureMagazine | |
ClosureMagazine.Handle | |
ClosureManager |
Allocates and manages the lifecycle of native closures (aka callbacks)
|
ClosureManager.SingletonHolder |
Holder class to do lazy allocation of the ClosureManager instance
|
ClosurePool | |
ClosurePool.Handle |
Manages the lifecycle of a native closure.
|
ClosurePool.Magazine | |
ClosurePool.Magazine.Slot | |
ClosurePool.MagazineHolder | |
ClosurePool.Proxy |
This is a proxy passed to the native code, to be called by the
native trampoline code.
|
DirectClosureBuffer |
Implementation of the
Closure.Buffer interface to read/write
parameter and return value data in native memory |
DirectClosureBuffer.NativeWordIO |
Reads annd writes data types that are smaller than the size of a native
long, as a native long for compatibility with FFI.
|
DirectClosureBuffer.NativeWordIO32 | |
DirectClosureBuffer.NativeWordIO64 | |
DirectObjectParameterStrategy | |
Foreign | |
Foreign.InstanceHolder | |
Foreign.InValidInstanceHolder | |
Foreign.ValidInstanceHolder | |
Function |
Native function invocation context
This class holds all the information that JFFI needs to correctly call a
native function.
|
HeapInvocationBuffer |
An implementation of
InvocationBuffer that packs its parameters onto
a java heap allocated buffer. |
HeapInvocationBuffer.ArrayIO | |
HeapInvocationBuffer.ArrayIO.SingletonHolder | |
HeapInvocationBuffer.BE32ArrayIO |
Big endian, 32 bit array encoder
|
HeapInvocationBuffer.BE64ArrayIO |
Big endian, 64 bit array encoder
|
HeapInvocationBuffer.BigEndianArrayIO |
Base class for all big-endian architecture array encoders.
|
HeapInvocationBuffer.DefaultEncoder | |
HeapInvocationBuffer.Encoder |
Encodes java data types into native parameter frames
|
HeapInvocationBuffer.Encoder.SingletonHolder | |
HeapInvocationBuffer.InvalidArrayIO | |
HeapInvocationBuffer.LE32ArrayIO |
Little endian, 32 bit implementation of ArrayIO
|
HeapInvocationBuffer.LE64ArrayIO |
Little endian, 64 bit implementation of ArrayIO
|
HeapInvocationBuffer.LittleEndianArrayIO |
Base class for all little-endian architecture array encoders.
|
HeapObjectParameterInvoker | |
Init |
Utility class to load the jffi stub library
|
Internals |
Retrieves metadata about jffi C internals
|
InvocationBuffer |
A parameter buffer used when invoking a function
|
InvokeDynamicSupport |
Provide a factory for invokedynamic handles that are bound to a particular call context+function
|
InvokeDynamicSupport.Invoker | |
InvokeDynamicSupport.JSR292 | |
Invoker |
Provides native function invocation facilities.
|
Invoker.ILP32 |
A 32 bit invoker implementation
|
Invoker.LP64 |
A 64 bit invoker implementation
|
Invoker.SingletonHolder |
Lazy initialization singleton holder
|
LastError |
Provides access to the value of errno on unix, or GetLastError on windows.
|
LastError.SingletonHolder |
Lazy-initialization singleton holder
|
Library |
Represents a native library
|
Library.DefaultLibrary |
A handle to the current process
|
Main | |
MemoryIO |
Provides facilities to access native memory from java.
|
MemoryIO.CheckedMemorySingletonHolder | |
MemoryIO.CheckedNativeImpl | |
MemoryIO.NativeImpl |
An implementation of MemoryIO using JNI methods.
|
MemoryIO.NativeImpl32 |
A 32 bit optimized implementation of MemoryIO using JNI.
|
MemoryIO.NativeImpl64 |
A 64 bit optimized implementation of MemoryIO using JNI.
|
MemoryIO.SingletonHolder |
Holds a single instance of MemoryIO
|
MemoryIO.UnsafeImpl |
An implementation of MemoryIO using sun.misc.Unsafe
|
MemoryIO.UnsafeImpl32 |
A 32 bit optimized implementation of MemoryIO using sun.misc.Unsafe
|
MemoryIO.UnsafeImpl64 |
A 64 bit optimized implementation of MemoryIO using sun.misc.Unsafe
|
NativeMethod |
Represents a native implementation of a method for a class
|
NativeMethods |
Utility class to register native methods on a class
|
NativeMethods.ResourceHolder | |
NativeObjectParameterInvoker | |
ObjectBuffer |
Holds objects the native code must handle - such as primitive arrays
|
ObjectParameterInfo | |
ObjectParameterInvoker | |
ObjectParameterInvoker.SingletonHolder | |
ObjectParameterStrategy<T> | |
ObjectParameterType |
Describes the type of an object parameter (e.g.
|
ObjectParameterType.TypeCache | |
PageManager |
Manages allocation, disposal and protection of native memory pages
|
PageManager.SingletonHolder | |
PageManager.Unix | |
PageManager.Windows | |
Platform |
Convenience class to interrogate the system about various platform-specific details.
|
Platform.ArchHolder | |
Platform.Darwin |
A
Platform subclass representing the MacOS system. |
Platform.Default | |
Platform.SingletonHolder |
Holds a single, lazily loaded instance of Platform
|
Platform.Windows |
A
Platform subclass representing the Windows system. |
Struct |
Describes the layout of a C struct
|
Struct.StructReference | |
Type |
Native parameter and return types.
|
Type.Builtin |
Types that are built-in to libffi.
|
Type.TypeInfo |
This is a lazy loaded cache of builtin type info, so we can still have
Type.VOID as a public static variable without it causing the
native library to load.
|
Union |
Describes the layout of a C union
|
Util | |
Version |
Enum | Description |
---|---|
CallingConvention |
Defines the function calling conventions.
|
NativeType | |
ObjectParameterInfo.ComponentType | |
ObjectParameterInfo.ObjectType | |
ObjectParameterStrategy.StrategyType | |
ObjectParameterType.ComponentType | |
ObjectParameterType.ObjectType | |
Platform.CPU |
The common names of cpu architectures.
|
Platform.OS |
The common names of operating systems.
|
Exception | Description |
---|---|
FaultException |