[][src]Function dart_sys::Dart_NewExternalUTF16String

pub unsafe extern "C" fn Dart_NewExternalUTF16String(
    utf16_array: *const u16,
    length: isize,
    peer: *mut c_void,
    external_allocation_size: isize,
    callback: Dart_WeakPersistentHandleFinalizer
) -> Dart_Handle

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.