Package com.kenai.jffi
package com.kenai.jffi
-
ClassDescriptionDescribes the layout of a C arrayFlags to use when adding an array as a pointer parameterNative 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.Holder class to do lazy allocation of the ClosureManager instanceDefines the function calling conventions.Represents a native closure.An interface to the native callback parameter buffer.A Handle is allocated by the
ClosureManager
, as a strong reference to the native closure trampoline.Allocates and manages the lifecycle of native closures (aka callbacks)Holder class to do lazy allocation of the ClosureManager instanceManages the lifecycle of a native closure.This is a proxy passed to the native code, to be called by the native trampoline code.Implementation of theClosure.Buffer
interface to read/write parameter and return value data in native memoryReads annd writes data types that are smaller than the size of a native long, as a native long for compatibility with FFI.Native function invocation context This class holds all the information that JFFI needs to correctly call a native function.An implementation ofInvocationBuffer
that packs its parameters onto a java heap allocated buffer.Big endian, 32 bit array encoderBig endian, 64 bit array encoderBase class for all big-endian architecture array encoders.Encodes java data types into native parameter framesLittle endian, 32 bit implementation ofArrayIO
Little endian, 64 bit implementation ofArrayIO
Base class for all little-endian architecture array encoders.Utility class to load the jffi stub libraryRetrieves metadata about jffi C internalsA parameter buffer used when invoking a functionProvide a factory for invokedynamic handles that are bound to a particular call context+functionProvides native function invocation facilities.A 32 bit invoker implementationA 64 bit invoker implementationLazy initialization singleton holderProvides access to the value of errno on unix, or GetLastError on windows.Lazy-initialization singleton holderRepresents a native libraryA handle to the current processProvides facilities to access native memory from java.An implementation of MemoryIO using JNI methods.A 32 bit optimized implementation ofMemoryIO
using JNI.A 64 bit optimized implementation ofMemoryIO
using JNI.Holds a single instance ofMemoryIO
Represents a native implementation of a method for a classUtility class to register native methods on a classHolds objects the native code must handle - such as primitive arraysDescribes the type of an object parameter (e.g.Manages allocation, disposal and protection of native memory pagesConvenience class to interrogate the system about various platform-specific details.The common names of cpu architectures.APlatform
subclass representing the MacOS system.The common names of operating systems.Holds a single, lazily loaded instance ofPlatform
APlatform
subclass representing the Windows system.Describes the layout of a C structNative parameter and return types.Types that are built-in to libffi.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.Describes the layout of a C unionAn implementation ofMemoryIO
using sun.misc.UnsafeA 32 bit optimized implementation ofMemoryIO
using sun.misc.UnsafeA 64 bit optimized implementation ofMemoryIO
using sun.misc.Unsafe