Flutter Engine
The Flutter Engine
Public Attributes | List of all members
Dart_InitializeParams Struct Reference

#include <dart_api.h>

Public Attributes

int32_t version
 
const uint8_t * vm_snapshot_data
 
const uint8_t * vm_snapshot_instructions
 
Dart_IsolateGroupCreateCallback create_group
 
Dart_InitializeIsolateCallback initialize_isolate
 
Dart_IsolateShutdownCallback shutdown_isolate
 
Dart_IsolateCleanupCallback cleanup_isolate
 
Dart_IsolateGroupCleanupCallback cleanup_group
 
Dart_ThreadStartCallback thread_start
 
Dart_ThreadExitCallback thread_exit
 
Dart_FileOpenCallback file_open
 
Dart_FileReadCallback file_read
 
Dart_FileWriteCallback file_write
 
Dart_FileCloseCallback file_close
 
Dart_EntropySource entropy_source
 
Dart_GetVMServiceAssetsArchive get_service_assets
 
bool start_kernel_isolate
 
Dart_CodeObservercode_observer
 
Dart_RegisterKernelBlobCallback register_kernel_blob
 
Dart_UnregisterKernelBlobCallback unregister_kernel_blob
 

Detailed Description

Describes how to initialize the VM. Used with Dart_Initialize.

Definition at line 899 of file dart_api.h.

Member Data Documentation

◆ cleanup_group

Dart_IsolateGroupCleanupCallback Dart_InitializeParams::cleanup_group

A function to be called after an isolate group is shutdown. See Dart_IsolateGroupCleanupCallback.

Definition at line 950 of file dart_api.h.

◆ cleanup_isolate

Dart_IsolateCleanupCallback Dart_InitializeParams::cleanup_isolate

A function to be called after an isolate was shutdown. See Dart_IsolateCleanupCallback.

Definition at line 944 of file dart_api.h.

◆ code_observer

Dart_CodeObserver* Dart_InitializeParams::code_observer

An external code observer callback function. The observer can be invoked as early as during the Dart_Initialize() call.

Definition at line 972 of file dart_api.h.

◆ create_group

Dart_IsolateGroupCreateCallback Dart_InitializeParams::create_group

A function to be called during isolate group creation. See Dart_IsolateGroupCreateCallback.

Definition at line 925 of file dart_api.h.

◆ entropy_source

Dart_EntropySource Dart_InitializeParams::entropy_source

Definition at line 958 of file dart_api.h.

◆ file_close

Dart_FileCloseCallback Dart_InitializeParams::file_close

Definition at line 957 of file dart_api.h.

◆ file_open

Dart_FileOpenCallback Dart_InitializeParams::file_open

Definition at line 954 of file dart_api.h.

◆ file_read

Dart_FileReadCallback Dart_InitializeParams::file_read

Definition at line 955 of file dart_api.h.

◆ file_write

Dart_FileWriteCallback Dart_InitializeParams::file_write

Definition at line 956 of file dart_api.h.

◆ get_service_assets

Dart_GetVMServiceAssetsArchive Dart_InitializeParams::get_service_assets

A function to be called by the service isolate when it requires the vmservice assets archive. See Dart_GetVMServiceAssetsArchive.

Definition at line 964 of file dart_api.h.

◆ initialize_isolate

Dart_InitializeIsolateCallback Dart_InitializeParams::initialize_isolate

A function to be called during isolate initialization inside an existing isolate group. See Dart_InitializeIsolateCallback.

Definition at line 932 of file dart_api.h.

◆ register_kernel_blob

Dart_RegisterKernelBlobCallback Dart_InitializeParams::register_kernel_blob

Kernel blob registration callback function. See Dart_RegisterKernelBlobCallback.

Definition at line 977 of file dart_api.h.

◆ shutdown_isolate

Dart_IsolateShutdownCallback Dart_InitializeParams::shutdown_isolate

A function to be called right before an isolate is shutdown. See Dart_IsolateShutdownCallback.

Definition at line 938 of file dart_api.h.

◆ start_kernel_isolate

bool Dart_InitializeParams::start_kernel_isolate

Definition at line 966 of file dart_api.h.

◆ thread_exit

Dart_ThreadExitCallback Dart_InitializeParams::thread_exit

Definition at line 953 of file dart_api.h.

◆ thread_start

Dart_ThreadStartCallback Dart_InitializeParams::thread_start

Definition at line 952 of file dart_api.h.

◆ unregister_kernel_blob

Dart_UnregisterKernelBlobCallback Dart_InitializeParams::unregister_kernel_blob

Kernel blob unregistration callback function. See Dart_UnregisterKernelBlobCallback.

Definition at line 982 of file dart_api.h.

◆ version

int32_t Dart_InitializeParams::version

Identifies the version of the struct used by the client. should be initialized to DART_INITIALIZE_PARAMS_CURRENT_VERSION.

Definition at line 904 of file dart_api.h.

◆ vm_snapshot_data

const uint8_t* Dart_InitializeParams::vm_snapshot_data

A buffer containing snapshot data, or NULL if no snapshot is provided.

If provided, the buffer must remain valid until Dart_Cleanup returns.

Definition at line 911 of file dart_api.h.

◆ vm_snapshot_instructions

const uint8_t* Dart_InitializeParams::vm_snapshot_instructions

A buffer containing a snapshot of precompiled instructions, or NULL if no snapshot is provided.

If provided, the buffer must remain valid until Dart_Cleanup returns.

Definition at line 919 of file dart_api.h.


The documentation for this struct was generated from the following file: