Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
dart::bin::elf::Mappable Class Referenceabstract
Inheritance diagram for dart::bin::elf::Mappable:
dart::bin::elf::FileMappable dart::bin::elf::MemoryMappable

Public Member Functions

virtual MappedMemoryMap (File::MapType type, uint64_t position, uint64_t length, void *start=nullptr)=0
 
virtual bool SetPosition (uint64_t position)=0
 
virtual bool ReadFully (void *dest, int64_t length)=0
 
virtual ~Mappable ()
 

Static Public Member Functions

static MappableFromPath (const char *path)
 
static MappableFromMemory (const uint8_t *memory, size_t size)
 

Protected Member Functions

 Mappable ()
 

Detailed Description

Definition at line 26 of file elf_loader.cc.

Constructor & Destructor Documentation

◆ ~Mappable()

virtual dart::bin::elf::Mappable::~Mappable ( )
inlinevirtual

Definition at line 42 of file elf_loader.cc.

42{}

◆ Mappable()

dart::bin::elf::Mappable::Mappable ( )
inlineprotected

Definition at line 45 of file elf_loader.cc.

45{}

Member Function Documentation

◆ FromMemory()

Mappable * dart::bin::elf::Mappable::FromMemory ( const uint8_t *  memory,
size_t  size 
)
static

Definition at line 161 of file elf_loader.cc.

161 {
162 return new MemoryMappable(memory, size);
163}
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

◆ FromPath()

Mappable * dart::bin::elf::Mappable::FromPath ( const char *  path)
static

Definition at line 151 of file elf_loader.cc.

151 {
152 return new FileMappable(File::Open(/*namespc=*/nullptr, path, File::kRead));
153}
static File * Open(Namespace *namespc, const char *path, FileOpenMode mode)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57

◆ Map()

virtual MappedMemory * dart::bin::elf::Mappable::Map ( File::MapType  type,
uint64_t  position,
uint64_t  length,
void *  start = nullptr 
)
pure virtual

◆ ReadFully()

virtual bool dart::bin::elf::Mappable::ReadFully ( void *  dest,
int64_t  length 
)
pure virtual

◆ SetPosition()

virtual bool dart::bin::elf::Mappable::SetPosition ( uint64_t  position)
pure virtual

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