Searched refs:MappedFile (Results 1 - 4 of 4) sorted by relevance
/commonlibrary/c_utils/base/src/ |
H A D | mapped_file.cpp | 28 off_t MappedFile::pageSize_ = static_cast<off_t>(sysconf(_SC_PAGESIZE)); 30 MappedFile::MappedFile(std::string& path, MapMode mode, off_t offset, off_t size, const char *hint) in MappedFile() function in OHOS::Utils::MappedFile 33 bool MappedFile::ValidMappedSize(off_t& targetSize, const struct stat& stb) in ValidMappedSize() 45 bool MappedFile::NormalizePath() in NormalizePath() 60 bool MappedFile::NormalizeSize() in NormalizeSize() 107 void MappedFile::NormalizeMode() in NormalizeMode() 137 ErrCode MappedFile::Normalize() in Normalize() 164 bool MappedFile::OpenFile() in OpenFile() 196 ErrCode MappedFile [all...] |
/commonlibrary/c_utils/base/include/ |
H A D | mapped_file.h | 44 class MappedFile { class in OHOS::Utils::MapMode 49 explicit MappedFile(std::string& path, 55 MappedFile(const MappedFile& other) = delete; 56 MappedFile(MappedFile&& other) noexcept; 57 MappedFile& operator=(const MappedFile& other) = delete; 58 MappedFile& operator=(MappedFile [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/mapped_benchmark_test/ |
H A D | mapped_benchmark_test.cpp | 69 void PrintStatus(MappedFile& mf) in PrintStatus() 136 void ReadFromMappedFile(std::string& content, MappedFile& mf, benchmark::State& state) in ReadFromMappedFile() 145 void WriteToMappedFile(std::string& toWrite, MappedFile& mf) in WriteToMappedFile() 168 MappedFile mf(filename); in BENCHMARK_F() 230 MappedFile mf(filename, MapMode::DEFAULT | MapMode::CREATE_IF_ABSENT); in BENCHMARK_F() 293 MappedFile mf(filename, MapMode::DEFAULT | MapMode::CREATE_IF_ABSENT, offset, size, hint); in BENCHMARK_F() 352 MappedFile mf(filename, MapMode::DEFAULT | MapMode::PRIVATE); in BENCHMARK_F() 388 MappedFile mf(filename, MapMode::DEFAULT | MapMode::READ_ONLY); in BENCHMARK_F() 418 MappedFile mf(filename); in BENCHMARK_F() 449 static void ChangeParamsWhenUnmapped(MappedFile [all...] |
/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_mapped_file_test.cpp | 50 std::cout << "Page size:" << MappedFile::PageSize() << std::endl; in SetUpTestCase() 60 void PrintStatus(MappedFile& mf) in PrintStatus() 122 void TestFileStatusAndRead(MappedFile& mf, in TestFileStatusAndRead() 151 void TestFileReadAndWrite(const MappedFile& mf, const std::string& content) in TestFileReadAndWrite() 169 void TestFileStat(MappedFile& mf, in TestFileStat() 193 void TestFileContentEqual(const MappedFile& mf, in TestFileContentEqual() 220 void TestFileRegion(MappedFile& mf, const off_t orig) in TestFileRegion() 226 for (unsigned int cnt = 2; cnt < (MappedFile::PageSize() / orig); cnt++) { // 2: start from 2 to take the first in TestFileRegion() 248 void TestFileWrite(const MappedFile& mfNew, const std::string& filename, const std::string& content) in TestFileWrite() 271 void TestTwoFileWrite(const MappedFile [all...] |
Completed in 4 milliseconds