Interface CTypeConversion.CCharPointerHolder

All Superinterfaces:
AutoCloseable
Enclosing class:
CTypeConversion

public static interface CTypeConversion.CCharPointerHolder extends AutoCloseable
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 Summary

    Modifier and Type
    Method
    Description
    void
    Discards the C pointer.
    get()
    Returns the C pointer to the null-terminated C char[] array.
  • Method Details

    • 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 interface AutoCloseable
      Since:
      19.0