Package org.graalvm.nativeimage.c.struct
Class SizeOf
java.lang.Object
org.graalvm.nativeimage.c.struct.SizeOf
Contains static methods that provide access to the size of dereferenced SystemJava pointer
types (i.e. the size of the data structure pointed-to by SystemJava pointer). Note that this
semantic differs from the sizeof-operator defined by the C programming language.
- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
get
(Class<? extends PointerBase> clazz) Returns the size of the data structure pointed to by SystemJava pointer types.static UnsignedWord
unsigned
(Class<? extends PointerBase> clazz) Returns thesize
cast toUnsignedWord
.
-
Method Details
-
get
Returns the size of the data structure pointed to by SystemJava pointer types. The class must be annotated withCStruct
,CPointerTo
, orRawStructure
.- Since:
- 19.0
-
unsigned
Returns thesize
cast toUnsignedWord
.- Since:
- 19.0
-