MCPcopy Index your code
hub / github.com/crosspoint-reader/crosspoint-reader / openFileForRead

Method openFileForRead

lib/hal/HalStorage.cpp:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98bool HalStorage::rmdir(const char* path) { HAL_STORAGE_WRAPPED_CALL(rmdir, path); }
99
100bool HalStorage::openFileForRead(const char* moduleName, const char* path, HalFile& file) {
101 StorageLock lock; // ensure thread safety for the duration of this function
102 FsFile fsFile;
103 bool ok = SDCard.openFileForRead(moduleName, path, fsFile);
104 file = HalFile(std::make_unique<HalFile::Impl>(std::move(fsFile)));
105 return ok;
106}
107
108bool HalStorage::openFileForRead(const char* moduleName, const std::string& path, HalFile& file) {
109 return openFileForRead(moduleName, path.c_str(), file);

Callers 15

generateThumbBmpMethod · 0.80
openMethod · 0.80
ensureFileOpenMethod · 0.80
isValidXtcFileMethod · 0.80
loadMethod · 0.80
generateCoverBmpMethod · 0.80
readContentMethod · 0.80
openMethod · 0.80
buildMiniKernMatrixMethod · 0.80
loadMethod · 0.80
prewarmStyleMethod · 0.80

Calls 1

HalFileClass · 0.85

Tested by

no test coverage detected