pub unsafe extern "C" fn Dart_LoadScriptFromKernel(
    kernel_buffer: *const u8,
    kernel_size: isize
) -> Dart_Handle
Expand description

Loads the root library for the current isolate.

Requires there to be no current root library.

\param kernel_buffer A buffer which contains a kernel binary (see pkg/kernel/binary.md). Must remain valid until isolate group shutdown. \param kernel_size Length of the passed in buffer.

\return A handle to the root library, or an error.