GDExtensionInterfaceStringToWideChars typedef

GDExtensionInterfaceStringToWideChars = Pointer<NativeFunction<GDExtensionInterfaceStringToWideCharsFunction>>

@name string_to_wide_chars @since 4.1

Converts a String to a wide 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 GDExtensionInterfaceStringToWideChars =
    ffi.Pointer<
      ffi.NativeFunction<GDExtensionInterfaceStringToWideCharsFunction>
    >;