Flutter Engine
The Flutter Engine
|
Provides thread-safe access to data that is necessary to bootstrap a new Dart VM instance. All snapshots referenced by this object are read-only. More...
#include <dart_vm_data.h>
Public Member Functions | |
~DartVMData () | |
Collect the DartVMData instance. More... | |
const Settings & | GetSettings () const |
The settings object from which the Dart snapshots were inferred. More... | |
const DartSnapshot & | GetVMSnapshot () const |
Gets the VM snapshot. This can be in the call to bootstrap the Dart VM via Dart_Initialize . More... | |
fml::RefPtr< const DartSnapshot > | GetIsolateSnapshot () const |
Get the isolate snapshot necessary to launch isolates in the Dart VM. The Dart VM instance in which these isolates are launched must be the same as the VM created using snapshot accessed via GetVMSnapshot . More... | |
fml::RefPtr< const DartSnapshot > | GetServiceIsolateSnapshot () const |
Get the isolate snapshot used to launch the service isolate in the Dart VM. More... | |
bool | GetServiceIsolateSnapshotNullSafety () const |
Returns whether the service isolate snapshot requires null safety in the Dart_IsolateFlags used to create the isolate. More... | |
Static Public Member Functions | |
static std::shared_ptr< const DartVMData > | Create (const Settings &settings, fml::RefPtr< const DartSnapshot > vm_snapshot, fml::RefPtr< const DartSnapshot > isolate_snapshot) |
Creates a new instance of DartVMData . Both the VM and isolate snapshot members are optional and may be nullptr . If nullptr , the snapshot resolvers present in the settings object are used to infer the snapshots. If the snapshots cannot be inferred from the settings object, this method return nullptr . More... | |
Provides thread-safe access to data that is necessary to bootstrap a new Dart VM instance. All snapshots referenced by this object are read-only.
Definition at line 18 of file dart_vm_data.h.
|
default |
Collect the DartVMData instance.
|
static |
Creates a new instance of DartVMData
. Both the VM and isolate snapshot members are optional and may be nullptr
. If nullptr
, the snapshot resolvers present in the settings object are used to infer the snapshots. If the snapshots cannot be inferred from the settings object, this method return nullptr
.
[in] | settings | The settings used to infer the VM and isolate snapshots if they are not provided directly. |
[in] | vm_snapshot | The VM snapshot or nullptr . |
[in] | isolate_snapshot | The isolate snapshot or nullptr . |
nullptr
if the snapshots are not provided and cannot be inferred from the settings object. Definition at line 11 of file dart_vm_data.cc.
fml::RefPtr< const DartSnapshot > flutter::DartVMData::GetIsolateSnapshot | ( | ) | const |
Get the isolate snapshot necessary to launch isolates in the Dart VM. The Dart VM instance in which these isolates are launched must be the same as the VM created using snapshot accessed via GetVMSnapshot
.
Definition at line 67 of file dart_vm_data.cc.
fml::RefPtr< const DartSnapshot > flutter::DartVMData::GetServiceIsolateSnapshot | ( | ) | const |
Get the isolate snapshot used to launch the service isolate in the Dart VM.
Definition at line 71 of file dart_vm_data.cc.
bool flutter::DartVMData::GetServiceIsolateSnapshotNullSafety | ( | ) | const |
Returns whether the service isolate snapshot requires null safety in the Dart_IsolateFlags used to create the isolate.
Definition at line 78 of file dart_vm_data.cc.
const Settings & flutter::DartVMData::GetSettings | ( | ) | const |
The settings object from which the Dart snapshots were inferred.
Definition at line 59 of file dart_vm_data.cc.
const DartSnapshot & flutter::DartVMData::GetVMSnapshot | ( | ) | const |
Gets the VM snapshot. This can be in the call to bootstrap the Dart VM via Dart_Initialize
.
Definition at line 63 of file dart_vm_data.cc.