Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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}

◆ 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)

◆ 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: