[][src]Function dart_sys::Dart_CreateSnapshot

pub unsafe extern "C" fn Dart_CreateSnapshot(
    vm_snapshot_data_buffer: *mut *mut u8,
    vm_snapshot_data_size: *mut isize,
    isolate_snapshot_data_buffer: *mut *mut u8,
    isolate_snapshot_data_size: *mut isize
) -> Dart_Handle

Creates a full snapshot of the current isolate heap.

A full snapshot is a compact representation of the dart vm isolate heap and dart isolate heap states. These snapshots are used to initialize the vm isolate on startup and fast initialization of an isolate. A Snapshot of the heap is created before any dart code has executed.

Requires there to be a current isolate.

\param buffer Returns a pointer to a buffer containing the snapshot. This buffer is scope allocated and is only valid until the next call to Dart_ExitScope. \param size Returns the size of the buffer.

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