[][src]Function dart_sys::Dart_StringToUTF16

pub unsafe extern "C" fn Dart_StringToUTF16(
    str: Dart_Handle,
    utf16_array: *mut u16,
    length: *mut isize
) -> Dart_Handle

Gets the UTF-16 encoded representation of a string.

\param str A string. \param utf16_array An array allocated by the caller, used to return the array of UTF-16 encoded characters. \param length Used to pass in the length of the provided array. Used to return the length of the array which was actually used.

\return A valid handle if no error occurs during the operation.