Function dart_sys::Dart_NewExternalUTF16String
source · pub unsafe extern "C" fn Dart_NewExternalUTF16String(
utf16_array: *const u16,
length: isize,
peer: *mut c_void,
external_allocation_size: isize,
callback: Dart_HandleFinalizer
) -> Dart_Handle
Expand description
Returns a String which references an external array of UTF-16 encoded characters.
\param utf16_array An array of UTF-16 encoded characters. This must not move. \param length The length of the characters array. \param peer An external pointer to associate with this string. \param external_allocation_size The number of externally allocated bytes for peer. Used to inform the garbage collector. \param callback A callback to be called when this string is finalized.
\return The String object if no error occurs. Otherwise returns an error handle.