All Classes and Interfaces
Class
Description
Base implementations of some MemoryIO operations.
An abstract class for common PrimitiveReference functionality
An abstract class for common PrimitiveReference functionality
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.
Utilities for collections of annotations
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.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.
Holds 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.
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.
The common names of supported operating systems.
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.
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
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
Indicates that the parameter is transient.
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.
LibraryLoader
instead.