public final class ParameterFlags extends Object
限定符和类型 | 字段和说明 |
---|---|
static int |
DIRECT
When allocating memory for the parameter, allocate a persistent memory block
|
static int |
IN
Contents of the parameter memory will be copied from from java to native memory
|
static int |
NULTERMINATE
The contents of the java array should have a zero byte appended
|
static int |
OUT
Contents of the parameter memory will be copied from native memory back to java
|
static int |
PINNED
The java array memory should be pinned by the JVM during the function call
|
static int |
TRANSIENT
When allocating memory for the parameter, a temporary memory block can be used
|
限定符和类型 | 方法和说明 |
---|---|
static boolean |
isDirect(int flags) |
static boolean |
isFlag(Annotation annotation)
Checks if the annotation is a recognised parameter flag.
|
static boolean |
isIn(int flags) |
static boolean |
isNulTerminate(int flags) |
static boolean |
isOut(int flags) |
static boolean |
isPinned(int flags) |
static boolean |
isTransient(int flags) |
static int |
parse(Annotation annotation) |
static int |
parse(Annotation[] annotations) |
static int |
parse(Collection<Annotation> annotations) |
public static final int OUT
public static final int IN
public static final int PINNED
public static final int NULTERMINATE
public static final int TRANSIENT
public static final int DIRECT
public static int parse(Annotation annotation)
public static int parse(Annotation[] annotations)
public static int parse(Collection<Annotation> annotations)
public static boolean isFlag(Annotation annotation)
annotation
- the annotation to check.true
if the annotation is a parameter flagpublic static boolean isPinned(int flags)
public static boolean isTransient(int flags)
public static boolean isDirect(int flags)
public static boolean isNulTerminate(int flags)
public static boolean isOut(int flags)
public static boolean isIn(int flags)
Copyright © 2021. All rights reserved.