Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
dart::bin::AppSnapshot Class Referenceabstract

#include <snapshot_utils.h>

Inheritance diagram for dart::bin::AppSnapshot:
dart::bin::DummySnapshot dart::bin::MappedAppSnapshot

Public Member Functions

virtual ~AppSnapshot ()
 
virtual void SetBuffers (const uint8_t **vm_data_buffer, const uint8_t **vm_instructions_buffer, const uint8_t **isolate_data_buffer, const uint8_t **isolate_instructions_buffer)=0
 
bool IsJIT () const
 
bool IsAOT () const
 
bool IsJITorAOT () const
 
bool IsKernel () const
 
bool IsKernelList () const
 

Protected Member Functions

 AppSnapshot (DartUtils::MagicNumber num)
 

Detailed Description

Definition at line 14 of file snapshot_utils.h.

Constructor & Destructor Documentation

◆ ~AppSnapshot()

virtual dart::bin::AppSnapshot::~AppSnapshot ( )
inlinevirtual

Definition at line 16 of file snapshot_utils.h.

16{}

◆ AppSnapshot()

dart::bin::AppSnapshot::AppSnapshot ( DartUtils::MagicNumber  num)
inlineexplicitprotected

Definition at line 34 of file snapshot_utils.h.

34: magic_number_(num) {}

Member Function Documentation

◆ IsAOT()

bool dart::bin::AppSnapshot::IsAOT ( ) const
inline

Definition at line 24 of file snapshot_utils.h.

24{ return DartUtils::IsAotMagicNumber(magic_number_); }
static bool IsAotMagicNumber(MagicNumber number)
Definition: dartutils.h:275

◆ IsJIT()

bool dart::bin::AppSnapshot::IsJIT ( ) const
inline

Definition at line 23 of file snapshot_utils.h.

23{ return magic_number_ == DartUtils::kAppJITMagicNumber; }

◆ IsJITorAOT()

bool dart::bin::AppSnapshot::IsJITorAOT ( ) const
inline

Definition at line 25 of file snapshot_utils.h.

25{ return IsJIT() || IsAOT(); }

◆ IsKernel()

bool dart::bin::AppSnapshot::IsKernel ( ) const
inline

Definition at line 26 of file snapshot_utils.h.

26 {
27 return magic_number_ == DartUtils::kKernelMagicNumber;
28 }

◆ IsKernelList()

bool dart::bin::AppSnapshot::IsKernelList ( ) const
inline

Definition at line 29 of file snapshot_utils.h.

29 {
30 return magic_number_ == DartUtils::kKernelListMagicNumber;
31 }

◆ SetBuffers()

virtual void dart::bin::AppSnapshot::SetBuffers ( const uint8_t **  vm_data_buffer,
const uint8_t **  vm_instructions_buffer,
const uint8_t **  isolate_data_buffer,
const uint8_t **  isolate_instructions_buffer 
)
pure virtual

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