Package org.graalvm.nativeimage.c.type
Interface CTypeConversion.CCharPointerHolder
- All Superinterfaces:
AutoCloseable
- Enclosing class:
CTypeConversion
An auto-closable that holds a Java
CharSequence
as a null-terminated C char[] array.
The C pointer is only valid as long as the auto-closeable has not been closed.- Since:
- 19.0
-
Method Details
-
get
CCharPointer get()Returns the C pointer to the null-terminated C char[] array.- Since:
- 19.0
-
close
void close()Discards the C pointer.- Specified by:
close
in interfaceAutoCloseable
- Since:
- 19.0
-