MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / openFileForWrite

Method openFileForWrite

lib/hal/HalStorage.cpp:116–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116bool HalStorage::openFileForWrite(const char* moduleName, const char* path, HalFile& file) {
117 StorageLock lock; // ensure thread safety for the duration of this function
118 FsFile fsFile;
119 bool ok = SDCard.openFileForWrite(moduleName, path, fsFile);
120 file = HalFile(std::make_unique<HalFile::Impl>(std::move(fsFile)));
121 return ok;
122}
123
124bool HalStorage::openFileForWrite(const char* moduleName, const std::string& path, HalFile& file) {
125 return openFileForWrite(moduleName, path.c_str(), file);

Callers 15

generateCoverBmpMethod · 0.80
generateThumbBmpMethod · 0.80
generateCoverBmpMethod · 0.80
parseTocNcxFileMethod · 0.80
parseTocNavFileMethod · 0.80
parseCssFilesMethod · 0.80
generateCoverBmpMethod · 0.80
generateThumbBmpMethod · 0.80
beginContentOpfPassMethod · 0.80
beginTocPassMethod · 0.80
buildBookBinMethod · 0.80
createSectionFileMethod · 0.80

Calls 1

HalFileClass · 0.85

Tested by

no test coverage detected