GDExtensionInterfaceStringToUtf8Chars typedef

GDExtensionInterfaceStringToUtf8Chars = Pointer<NativeFunction<GDExtensionInterfaceStringToUtf8CharsFunction>>

@name string_to_utf8_chars @since 4.1

Converts a String to a UTF-8 encoded C string.

It doesn't write a null terminator.

@param p_self A pointer to the String. @param r_text A pointer to the buffer to hold the resulting data. If NULL is passed in, only the length will be computed. @param p_max_write_length The maximum number of characters that can be written to r_text. It has no affect on the return value.

@return The resulting encoded string length in characters (not bytes), not including a null terminator.

Implementation

typedef GDExtensionInterfaceStringToUtf8Chars =
    ffi.Pointer<
      ffi.NativeFunction<GDExtensionInterfaceStringToUtf8CharsFunction>
    >;