@Retention(value=RUNTIME) @Target(value={PARAMETER,ANNOTATION_TYPE}) public @interface Pinned
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.
IMPORTANT: This should not be used for functions that may block on network or filesystem access such as read(2), write(2), stat(2).
Copyright © 2017. All rights reserved.