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

Public Member Functions

 FileMappable (File *file)
 
 ~FileMappable () override
 
MappedMemoryMap (File::MapType type, uint64_t position, uint64_t length, void *start=nullptr) override
 
bool SetPosition (uint64_t position) override
 
bool ReadFully (void *dest, int64_t length) override
 
- Public Member Functions inherited from dart::bin::elf::Mappable
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 ()
 

Additional Inherited Members

- Static Public Member Functions inherited from dart::bin::elf::Mappable
static MappableFromPath (const char *path)
 
static MappableFromMemory (const uint8_t *memory, size_t size)
 
- Protected Member Functions inherited from dart::bin::elf::Mappable
 Mappable ()
 

Detailed Description

Definition at line 51 of file elf_loader.cc.

Constructor & Destructor Documentation

◆ FileMappable()

dart::bin::elf::FileMappable::FileMappable ( File file)
inlineexplicit

Definition at line 53 of file elf_loader.cc.

◆ ~FileMappable()

dart::bin::elf::FileMappable::~FileMappable ( )
inlineoverride

Definition at line 55 of file elf_loader.cc.

55{ file_->Release(); }

Member Function Documentation

◆ Map()

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

Implements dart::bin::elf::Mappable.

Definition at line 57 of file elf_loader.cc.

60 {
61 return file_->Map(type, position, length, start);
62 }
GLenum type
MappedMemory * Map(MapType type, int64_t position, int64_t length, void *start=nullptr)
size_t length

◆ ReadFully()

bool dart::bin::elf::FileMappable::ReadFully ( void *  dest,
int64_t  length 
)
inlineoverridevirtual

Implements dart::bin::elf::Mappable.

Definition at line 68 of file elf_loader.cc.

68 {
69 return file_->ReadFully(dest, length);
70 }
bool ReadFully(void *buffer, int64_t num_bytes)
Definition: file_support.cc:41
dest
Definition: zip.py:79

◆ SetPosition()

bool dart::bin::elf::FileMappable::SetPosition ( uint64_t  position)
inlineoverridevirtual

Implements dart::bin::elf::Mappable.

Definition at line 64 of file elf_loader.cc.

64 {
65 return file_->SetPosition(position);
66 }
bool SetPosition(int64_t position)

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