Top Description Methods
jnr.ffi.annotations

public @Interface Pinned

extends Annotation
Annotations
@Retention:RUNTIME
@Target:PARAMETER, ANNOTATION_TYPE
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Marks a method parameter as being pinnable.

This means the data for the parameter is not copied to/from native memory. Instead, the JVM memory is locked and passed directly to the native code.

Because the data is passed to native code unconverted, care must be taken to ensure element widths align for types wider than byte.

Important Note

This should not be used for functions that may block on network or filesystem access such as read(2), write(2), stat(2).

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString