notes/pl/java/jvm/jni/jnr/features/annotations.txt
Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

11 строки
460 B
Plaintext

import jnr.ffi.annotations...
* Clear (?no usages), In, Out
* Pinned - lock/unlock JVM memory instead of copying to/from native-memory
* Transient
This means it can be backed by a temporarily allocated native memory block,
and after the method call, the native memory can be freed again.
* NulTerminate - for strings
Pinned (?No check for this annotation):
https://github.com/jnr/jnr-ffi/blob/master/src/test/java/jnr/ffi/struct/UTF8StringFieldTest.java