Top Annotations
[default module]

Package jnr.ffi.annotations


Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
Clear

Indicates that the temporary native memory allocated for an @Out paramneter should be cleared before passing to the native function.

public @interface
public @interface
Direct

Indicates that a jnr.ffi.Struct} parameter should be backed by a persistent native memory block.

public @interface
Encoding

Used to specify the java.nio.charset.Charset to use for encoding/decoding a String

public @interface
IgnoreError

Indicates that the errno value for a native function need not be saved after the function returns.

public @interface
In

Indicates that the parameter is an IN parameter.

public @interface
LongLong

Indicates that a long parameter should be treated as native long-long (64bit) instead of the platform-dependent long size.

public @interface
public @interface
NulTerminate

Indicates that a byte array or ByteBuffer should be terminated with a zero byte before passing it to a native function.

public @interface
Out

Indicates that the parameter is an OUT parameter.

public @interface
Pinned

Marks a method parameter as being pinnable.

public @interface
SaveError

Tags a library method as requiring any error codes as returned by errno on unix, or GetLastError on windows be saved.

public @interface
public @interface
Synchronized

Indicates that a library or a library method requires all calls to be synchronized.

public @interface
Transient

Indicates that the parameter is transient.

public @interface
TypeDefinition

This is used internally by jnr-ffi to define type aliases, e.g. ssize_t => long.

public @interface
Variadic

Specifies that a non-varargs function binding will call a variadic C function with the specified number of fixed arguments.