GDExtensionInterfaceStringToUtf16Chars typedef

GDExtensionInterfaceStringToUtf16Chars = Pointer<NativeFunction<GDExtensionInterfaceStringToUtf16CharsFunction>>

@name string_to_utf16_chars @since 4.1

Converts a String to a UTF-16 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 GDExtensionInterfaceStringToUtf16Chars =
    ffi.Pointer<
      ffi.NativeFunction<GDExtensionInterfaceStringToUtf16CharsFunction>
    >;