#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 () |
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.
References fml::UniqueObject< T, Traits >::get(), fml::UniqueObject< T, Traits >::is_valid(), fml::IsWritable(), and fml::ToPosixProtectionFlags().
|
override |
Definition at line 88 of file mapping_posix.cc.
|
static |
Definition at line 50 of file mapping.cc.
References CreateReadExecute(), kExecute, fml::kRead, kRead, and fml::OpenFile().
|
static |
Definition at line 44 of file mapping.cc.
References CreateReadExecute(), fml::kRead, and fml::OpenFile().
Referenced by CreateReadExecute(), CreateReadExecute(), flutter::GetFileMapping(), and PopulateJITSnapshotMappingCallbacks().
|
static |
Definition at line 26 of file mapping.cc.
References CreateReadOnly(), fml::kRead, kRead, and fml::OpenFile().
|
static |
Definition at line 20 of file mapping.cc.
References CreateReadOnly(), fml::kRead, and fml::OpenFile().
Referenced by impeller::ShaderArchiveWriter::AddShaderAtPath(), CreateReadOnly(), CreateReadOnly(), impeller::compiler::GenerateShaderBackendFB(), flutter::GetFileMapping(), impeller::compiler::testing::CompilerTest::GetReflectionJson(), impeller::compiler::testing::CompilerTest::GetShaderFile(), flutter::LoadLibraryFromKernel(), impeller::compiler::Main(), flutter::testing::OpenFixtureAsMapping(), impeller::PipelineCacheDataRetrieve(), PopulateJITSnapshotMappingCallbacks(), flutter::ProductVersionFromSystemVersionPList(), flutter::testing::DartFixture::SetSnapshotsAndAssets(), flutter::StartupAndShutdownShell(), flutter::TemplaterMain(), impeller::testing::TEST(), and flutter::testing::TEST_F().
|
overridevirtual |
Implements fml::Mapping.
Definition at line 98 of file mapping_posix.cc.
Referenced by flutter::testing::ImageMatchesFixture(), ReadStringFromFile(), TEST(), and TEST().
| uint8_t * fml::FileMapping::GetMutableMapping | ( | ) |
Definition at line 16 of file mapping.cc.
Referenced by TEST().
|
overridevirtual |
Implements fml::Mapping.
Definition at line 94 of file mapping_posix.cc.
Referenced by flutter::testing::ImageMatchesFixture(), ReadStringFromFile(), TEST(), and TEST().
|
overridevirtual |
Implements fml::Mapping.
Definition at line 102 of file mapping_posix.cc.
Referenced by TEST().
| bool fml::FileMapping::IsValid | ( | ) | const |
Definition at line 106 of file mapping_posix.cc.