Package org.graalvm.nativeimage.c.struct
Annotation Interface CFieldOffset
Denotes a method as a field offset access of a
C struct
. The method must not have
any parameters. The return type must be a primitive integer type or a word type
.
Calls to the method are replaced with a compile time constant. If the annotation is used on a
non-static method, the receiver is ignored. Java does not allow an interface method to be
declared static native
. So the annotated method must either be non-static (with the
receiver being ignored), or static but non-native (with the method body being ignored).
- Since:
- 19.0
-
Optional Element Summary