GDExtensionInterfaceStringToLatin1Chars typedef

GDExtensionInterfaceStringToLatin1Chars = Pointer<NativeFunction<GDExtensionInterfaceStringToLatin1CharsFunction>>

@name string_to_latin1_chars @since 4.1

Converts a String to a Latin-1 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 GDExtensionInterfaceStringToLatin1Chars =
    ffi.Pointer<
      ffi.NativeFunction<GDExtensionInterfaceStringToLatin1CharsFunction>
    >;