Flutter Engine
The Flutter Engine
|
#include <mapping.h>
Public Types | |
enum class | Protection { kRead , kWrite , kExecute } |
Public Member Functions | |
FileMapping (const fml::UniqueFD &fd, std::initializer_list< Protection > protection={ Protection::kRead}) | |
~FileMapping () override | |
size_t | GetSize () const override |
const uint8_t * | GetMapping () const override |
bool | IsDontNeedSafe () const override |
uint8_t * | GetMutableMapping () |
bool | IsValid () const |
Public Member Functions inherited from fml::Mapping | |
Mapping () | |
virtual | ~Mapping () |
virtual size_t | GetSize () const =0 |
virtual const uint8_t * | GetMapping () const =0 |
virtual bool | IsDontNeedSafe () const =0 |
Static Public Member Functions | |
static std::unique_ptr< FileMapping > | CreateReadOnly (const std::string &path) |
static std::unique_ptr< FileMapping > | CreateReadOnly (const fml::UniqueFD &base_fd, const std::string &sub_path="") |
static std::unique_ptr< FileMapping > | CreateReadExecute (const std::string &path) |
static std::unique_ptr< FileMapping > | CreateReadExecute (const fml::UniqueFD &base_fd, const std::string &sub_path="") |
|
strong |
|
explicit |
Definition at line 53 of file mapping_posix.cc.
|
override |
Definition at line 88 of file mapping_posix.cc.
|
static |
Definition at line 50 of file mapping.cc.
|
static |
Definition at line 44 of file mapping.cc.
|
static |
Definition at line 26 of file mapping.cc.
|
static |
Definition at line 20 of file mapping.cc.
|
overridevirtual |
Implements fml::Mapping.
Definition at line 98 of file mapping_posix.cc.
uint8_t * fml::FileMapping::GetMutableMapping | ( | ) |
Definition at line 16 of file mapping.cc.
|
overridevirtual |
|
overridevirtual |
Implements fml::Mapping.
Definition at line 102 of file mapping_posix.cc.
bool fml::FileMapping::IsValid | ( | ) | const |
Definition at line 106 of file mapping_posix.cc.