All Classes and Interfaces
Class
Description
Base class for most X86_32/X86_64 stub compilers
Base implementations of some MemoryIO operations.
An abstract class for common PrimitiveReference functionality
An abstract class for common PrimitiveReference functionality
Base class for most X86_32/X86_64 stub compilers
The
Address
class wraps a native address in an object.AddressByReference is used when the address of a primitive pointer value must be passed
as a parameter to a function.
Sorts annotations according to name
Describes an annotation property.
Utilities for collections of annotations
Compilers method trampoline stubs for x86_64
Utility methods that are used at runtime by generated code.
Converts a Boolean[] array to a primitive boolean[] array parameter
Converts a Byte[] array to a byte[] array parameter
Converts a Double[] array to a double[] array parameter
Converts a Float[] array to a float[] array parameter
Converts a Integer[] array to a primitive int[] array parameter
Converts a Long[] array to a primitive int[] array parameter
Converts a Long[] array to a primitive 64bit long[] array parameter
Converts a Short[] array to a primitive short[] array parameter
A ByReference subclass is used when a primitive parameter must be passed
by-reference.
ByteByReference is used when the address of a primitive byte value must be passed
as a parameter to a function.
Caches native converter lookups by class.
Native function calling conventions.
Converts a CharSequence[] array to a Pointer parameter
Converts a CharSequence (e.g.
Indicates that the temporary native memory allocated for an
@Out
paramneter
should be cleared before passing to the native function.Indicates that a
Struct
} parameter should be
backed by a persistent native memory block.Provides mapping from Enum values to native integers and vice-versa
This class defines the facilities a JNR FFI provider must provide.
Phantom reference with a
finalizeReferent()
method which a background thread invokes
after the garbage collector reclaims the referent.Implemented by references that have code to run after garbage collection of their referents.
A reference queue with an associated background thread that dequeues references and invokes
FinalizableReference.finalizeReferent()
on them.Try to load Finalizer in its own class loader.
Loads Finalizer directly using the current class loader.
Loads Finalizer.class.
Tries to load Finalizer from the system class loader.
Soft reference with a
finalizeReferent()
method which a background thread invokes after
the garbage collector reclaims the referent.Weak reference with a
finalizeReferent()
method which a background thread invokes after
the garbage collector reclaims the referent.Thread that finalizes referents.
Context for conversion from native to Java.
Converts data from a native type to a java type
An implementation of
FunctionMapper
that just returns the same name as inputIndicates that the errno value for a native function need not be saved after
the function returns.
Indicates that the parameter is an IN parameter.
IntByReference is used when the address of a primitive int must be passed
as a parameter to a function.
A
Runtime
subclass that throws exceptions for all methodsHolds information for each invocation of a native function
Interface for any invocable function
Indexes of JavaVM methods
WARNING: Highly experimental!!!
This class contains constants that are the indexes withing the JNINativeInterface_
struct of each of the JNIEnv functions.
Provides access to the unix errno and windows GetLastError() value.
Deprecated.
Loads a native library and maps it to a java interface.
Options that apply to a library
All loaded libraries must implement this interface
Converts a long[] array to a primitive int[] array parameter
Indicates that a long parameter should be treated as native long-long (64bit)
instead of the platform-dependent long size.
LongLongByReference is used when the address of a native long long value must be passed
as a parameter to a function.
A utility for allocating memory that can be passed to native functions.
Manages access to various types of java and native memory.
Holds context for a method parameter from Java to native conversion.
InvocationHandler used to map invocations on a java interface to the correct native function.
Data class containing information about a loaded native library.
Represents a C long.
Internal cache of common native long values
Converts a NativeLong[] array to a primitive int[] array parameter
Converts a NativeLong[] array to a primitive long[] array parameter
NativeLongByReference is used when the address of a primitive C long must be passed
as a parameter to a function.
Parameter and return type support for the old NativeLong type
NativeType defines the primitive types supported internally.
Turns off debug tracing
An instance of
TypeMapper
which always returns nullIndicates that a byte array or ByteBuffer should be terminated with a zero byte
before passing it to a native function.
NumberByReference is used when the address of a primitive integral value must be passed
as a parameter to a function, but the exact type is system dependent.
Provides a mapping between java objects and unique native addresses.
Indicates that the parameter is an OUT parameter.
Marks a method parameter as being pinnable.
The supported CPU architectures.
A
Platform
subclass representing the MacOS system.A
Platform
subclass representing the Linux operating system.The common names of supported operating systems.
A
Platform
subclass representing the Windows system.A native memory address.
Converts a Pointer[] array to a int[] array parameter
Converts a Pointer[] array to a long[] array parameter
AddressByReference is used when the address of a pointer must be passed
as a parameter to a function.
Access JNR runtime functionality.
singleton holder for the default Runtime
Tags a library method as requiring any error codes as returned
by errno on unix, or GetLastError on windows be saved.
ShortByReference is used when the address of a primitive short value must be passed
as a parameter to a function.
Adapts a
TypeMapper
to a SignatureTypeMapperConverts a native pointer result into a java String
Representation of C structures in java.
Converts a Pointer[] array to a long[] array parameter
Converts a native pointer result into a
Struct
Compiles asm trampoline stubs for java class methods
Indicates that a library or a library method requires all calls to be
synchronized.
Used to reload a parameter converted to a native type via a custom
ToNativeConverter
Emits appropriate asm code to convert the parameter to a native value
Indicates that the parameter is transient.
Holder for a group of memory allocations.
Type is the superclass for all internal types used by jnr-ffi.
This is used internally by jnr-ffi to define type aliases, e.g.
Represents a C union
Access library global variables.
Generate global variable accessors
Specifies that a non-varargs function binding will call a variadic C function with the specified number of fixed
arguments.
Stub compiler for i386 unix
Compilers method trampoline stubs for x86_64
LibraryLoader
instead.