Type Alias dart_sys::Dart_RegisterKernelBlobCallback
source · pub type Dart_RegisterKernelBlobCallback = Option<unsafe extern "C" fn(kernel_buffer: *const u8, kernel_buffer_size: isize) -> *const c_char>;
Expand description
Optional callback provided by the embedder that is used by the VM to implement registration of kernel blobs for the subsequent Isolate.spawnUri If no callback is provided, the registration of kernel blobs will throw an error.
\param kernel_buffer A buffer which contains a kernel program. Callback
should copy the contents of kernel_buffer
as
it may be freed immediately after registration.
\param kernel_buffer_size The size of kernel_buffer
.
\return A C string representing URI which can be later used to spawn a new isolate. This C String should be scope allocated or owned by the embedder. Returns NULL if embedder runs out of memory.
Aliased Type§
enum Dart_RegisterKernelBlobCallback {
None,
Some(unsafe extern "C" fn(_: *const u8, _: isize) -> *const i8),
}