Top Fields Constructors Methods
org.fusesource.hawtjni.runtime

public final Enum ArgFlag

extends Enum<ArgFlag>
Class Inheritance

Author
Hiram Chirino

Field Summary

Modifier and TypeField and Description
public static final ArgFlag
BY_VALUE

Indicate that a structure parameter should be passed by value instead of by reference.

public static final ArgFlag
CRITICAL

Indicate that GetPrimitiveArrayCritical() should be used instead of Get<PrimitiveType>ArrayElements() when transferring array of primitives from/to C.

public static final ArgFlag
CS_OBJECT

Indicate that the native parameter is a C# managed object.

public static final ArgFlag
INIT

Indicate that the associated C local variable for a native method parameter should be initialized with zeros.

public static final ArgFlag
NO_IN

Indicate that a native method parameter is an out only variable.

public static final ArgFlag
NO_OUT

Indicate that a native method parameter is an in only variable.

public static final ArgFlag
POINTER_ARG

Indicate that the parameter is a pointer.

public static final ArgFlag
SENTINEL

Indicate that the parameter of a native method is the sentinel (last parameter of a variable argument C function).

public static final ArgFlag
UNICODE

Indicate that GetStringChars()should be used instead of GetStringUTFChars() to get the characters of a java.lang.String passed as a parameter to native methods.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ArgFlag
public static ArgFlag[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BY_VALUEback to summary
public static final ArgFlag BY_VALUE

Indicate that a structure parameter should be passed by value instead of by reference. This dereferences the parameter by prepending *. The parameter must not be NULL.

CRITICALback to summary
public static final ArgFlag CRITICAL

Indicate that GetPrimitiveArrayCritical() should be used instead of Get<PrimitiveType>ArrayElements() when transferring array of primitives from/to C. This is an optimization to avoid copying memory and must be used carefully. It is ok to be used in MoveMemory() and memmove() natives.

CS_OBJECTback to summary
public static final ArgFlag CS_OBJECT

Indicate that the native parameter is a C# managed object.

INITback to summary
public static final ArgFlag INIT

Indicate that the associated C local variable for a native method parameter should be initialized with zeros.

NO_INback to summary
public static final ArgFlag NO_IN

Indicate that a native method parameter is an out only variable. This only makes sense if the parameter is a structure or an array of primitives. It is an optimization to avoid copying the java memory to C memory on the way in.

NO_OUTback to summary
public static final ArgFlag NO_OUT

Indicate that a native method parameter is an in only variable. This only makes sense if the parameter is a structure or an array of primitives. It is an optimization to avoid copying the C memory from java memory on the way out.

POINTER_ARGback to summary
public static final ArgFlag POINTER_ARG

Indicate that the parameter is a pointer.

SENTINELback to summary
public static final ArgFlag SENTINEL

Indicate that the parameter of a native method is the sentinel (last parameter of a variable argument C function). The generated code is always the literal NULL. Some compilers expect the sentinel to be the literal NULL and output a warning if otherwise.

UNICODEback to summary
public static final ArgFlag UNICODE

Indicate that GetStringChars()should be used instead of GetStringUTFChars() to get the characters of a java.lang.String passed as a parameter to native methods.

Constructor Detail

ArgFlagback to summary
private ArgFlag()

Method Detail

valueOfback to summary
public static ArgFlag valueOf(String name)
valuesback to summary
public static ArgFlag[] values()