[][src]Function dart_sys::Dart_StringToUTF8

pub unsafe extern "C" fn Dart_StringToUTF8(
    str: Dart_Handle,
    utf8_array: *mut *mut u8,
    length: *mut isize
) -> Dart_Handle

Gets a UTF-8 encoded representation of a String.

\param str A string. \param utf8_array Returns the String represented as UTF-8 code units. This UTF-8 array is scope allocated and is only valid until the next call to Dart_ExitScope. \param length Used to return the length of the array which was actually used.

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