MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / beginFile

Method beginFile

3ds/source/transfer.cpp:244–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242 return true;
243 }
244 bool beginFile(const std::string& relPath, uint32_t sizeHint) override
245 {
246 ensureDirectoryPath(destRoot, relPath);
247 std::u16string outPath = destRoot + StringUtils::UTF8toUTF16(relPath.c_str());
248 output.emplace(Archive::sdmc(), outPath, FS_OPEN_WRITE, sizeHint);
249 return output->good();
250 }
251 bool writeFile(const void* data, size_t n) override
252 {
253 output->write(data, (u32)n);

Callers

nothing calls this directly

Calls 3

emplaceMethod · 0.80
ensureDirectoryPathFunction · 0.70
goodMethod · 0.45

Tested by

no test coverage detected