[][src]Function dart_sys::Dart_NewExternalLatin1String

pub unsafe extern "C" fn Dart_NewExternalLatin1String(
    latin1_array: *const u8,
    length: isize,
    peer: *mut c_void,
    external_allocation_size: isize,
    callback: Dart_WeakPersistentHandleFinalizer
) -> Dart_Handle

Returns a String which references an external array of Latin-1 (ISO-8859-1) encoded characters.

\param latin1_array Array of Latin-1 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.