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

Method open

3ds/source/transfer.cpp:268–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266 struct FsFileReader : TransferProto::FileReader {
267 std::optional<FSStream> stream;
268 bool open(const std::string& absPath) override
269 {
270 stream.emplace(Archive::sdmc(), StringUtils::UTF8toUTF16(absPath.c_str()), FS_OPEN_READ);
271 return stream->good();
272 }
273 size_t read(void* dst, size_t n) override { return stream ? stream->read(dst, (u32)n) : 0; }
274 void close() override
275 {

Callers

nothing calls this directly

Calls 2

emplaceMethod · 0.80
goodMethod · 0.45

Tested by

no test coverage detected