Package com.sun.jna
package com.sun.jna
Provides simplified native library access. See the overview for usage details.
-
KlasseBeschreibungTagging interface to indicate the library or callback uses an alternate calling convention.All callback definitions must derive from this interface.Provide argument conversion context for a callback invocation.Placeholder proxy interface to allow an InvocationHandler to convert arguments/return values on callback methods.Provides a reference to an association between a native callback closure and a Java
Callback
closure.Conversion context from a JavaCallback
result to a native value.Provide custom mappings to and from native types.Analyse an ELF file for platform specific attributes.Provides context for converting a native value into a Java type.Define conversion from a native type to the appropriate Java type.An abstraction for a native function pointer.Any argument which implements this interface will have theFunction.PostCallRead.read()
method called immediately after function invocation.Provides mapping of Java method names to native function names.Provide result conversion context for a function call.Represents a native integer value, which may have a platform-specific size (e.g.Provide a method for overriding how a given function is invoked.Marker type for the JNIEnv pointer.Exception representing a non-zero error code returned in eithererrno
orGetLastError()
.Derive from this interface for all native library definitions.APointer
to memory obtained from the native heap via a call tomalloc
.Provide result conversion context for a function call that is called via a Library interface.Provides generation of invocation plumbing for a defined native library interface.Provides management of native library resources.Represents thelong
C data type, which may be 32 or 64 bits on *nix-based systems.Provide conversion for a Java type to and from a native type.Provides type conversion for instances ofNativeMapped
.Provides a temporary allocation of an immutable C string (const char*
orconst wchar_t*
) for use when converting a Java String into a native memory function argument.Provide simplified platform information.An abstraction for a native pointer data type.Type representing a type-safe native pointer.Handle native array ofchar*
orwchar_t*
type by managing allocation/disposal of native strings within an array of pointers.Represents a native structure with a Java peer class.Tagging interface to indicate the address of an instance of the Structure type is to be used within aStructure
definition rather than nesting the full Structure contents.Tagging interface to indicate the value of an instance of theStructure
type is to be used in function invocations rather than its address.This class auto-generates an ffi_type structure appropriate for a given structure for use by libffi.Used to declare fields order as metadata instead of method.Avoid using a hash-based implementation since the hash code for a Structure is not immutable.Provide native to Java type conversion context for aStructure
field read.Provide Java to native type conversion context for aStructure
field write.Interface to define a custom symbol provider.Context for converting a Java value to a native one.Define conversion from a Java type to its corresponding native type.Convenience interface for bidirectional conversion.Provides converters for conversion to and from native types.Represents a native union.Class for checking if a method has vararg parameters.Helper to hold a memory object based on the lifetime of another object.Simple wrapper class to identify a wide string argument or return type.