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

Method beginFile

3ds/source/transfer.cpp:241–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239 return true;
240 }
241 bool beginFile(const std::string& relPath, uint32_t sizeHint) override
242 {
243 ensureDirectoryPath(destRoot, relPath);
244 std::u16string outPath = destRoot + StringUtils::UTF8toUTF16(relPath.c_str());
245 output.emplace(Archive::sdmc(), outPath, FS_OPEN_WRITE, sizeHint);
246 return output->good();
247 }
248 bool writeFile(const void* data, size_t n) override
249 {
250 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