Top Fields Constructors Methods
jnr.ffi.provider

public final Class ParameterFlags

extends Object
Class Inheritance
Imports
jnr.ffi.annotations.Direct, .In, .NulTerminate, .Out, .Pinned, .Transient, java.lang.annotation.Annotation, java.util.Collection

Field Summary

Modifier and TypeField and Description
public static final int
DIRECT

When allocating memory for the parameter, allocate a persistent memory block

public static final int
IN

Contents of the parameter memory will be copied from from java to native memory

public static final int
NULTERMINATE

The contents of the java array should have a zero byte appended

public static final int
OUT

Contents of the parameter memory will be copied from native memory back to java

public static final int
PINNED

The java array memory should be pinned by the JVM during the function call

public static final int
TRANSIENT

When allocating memory for the parameter, a temporary memory block can be used

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean
isDirect(int flags)

public static boolean

Returns:

true if the annotation is a parameter flag
isFlag
(Annotation
the annotation to check.
annotation
)

Checks if the annotation is a recognised parameter flag.

public static boolean
isIn(int flags)

public static boolean
isNulTerminate(int flags)

public static boolean
isOut(int flags)

public static boolean
isPinned(int flags)

public static boolean
isTransient(int flags)

public static int
parse(Annotation annotation)

public static int
parse(Annotation[] annotations)

public static int
parse(Collection<Annotation> annotations)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DIRECTback to summary
public static final int DIRECT

When allocating memory for the parameter, allocate a persistent memory block

INback to summary
public static final int IN

Contents of the parameter memory will be copied from from java to native memory

NULTERMINATEback to summary
public static final int NULTERMINATE

The contents of the java array should have a zero byte appended

OUTback to summary
public static final int OUT

Contents of the parameter memory will be copied from native memory back to java

PINNEDback to summary
public static final int PINNED

The java array memory should be pinned by the JVM during the function call

TRANSIENTback to summary
public static final int TRANSIENT

When allocating memory for the parameter, a temporary memory block can be used

Constructor Detail

ParameterFlagsback to summary
private ParameterFlags()

Method Detail

isDirectback to summary
public static boolean isDirect(int flags)
isFlagback to summary
public static boolean isFlag(Annotation annotation)

Checks if the annotation is a recognised parameter flag.

Parameters
annotation:Annotation

the annotation to check.

Returns:boolean

true if the annotation is a parameter flag

isInback to summary
public static boolean isIn(int flags)
isNulTerminateback to summary
public static boolean isNulTerminate(int flags)
isOutback to summary
public static boolean isOut(int flags)
isPinnedback to summary
public static boolean isPinned(int flags)
isTransientback to summary
public static boolean isTransient(int flags)
parseback to summary
public static int parse(Annotation annotation)
parseback to summary
public static int parse(Annotation[] annotations)
parseback to summary
public static int parse(Collection<Annotation> annotations)