Top Description Methods
org.graalvm.nativeimage.c.struct

public @Interface CFieldAddress

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target, org.graalvm.word.WordBase

Denotes a method as a field address computation of a C struct.

Calls to the method are replaced with address arithmetic. The possible signatures are IntType addressOfFieldName([IntType index]);

The return type must be a primitive integer type or a word type. The receiver is the pointer to the struct that is accessed

The field offset, i.e., the value that is added to the receiver, is a compile time constant.

Since
19.0

Method Summary

Modifier and TypeMethod and Description
public String
value()

Specifies the field name inside the C struct.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

Specifies the field name inside the C struct. If no name is provided, the method name is used as the field name. A possible "addressOf" prefix of the method name is removed.

Since
19.0