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

Method open

3ds/source/transfer.cpp:265–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

emplaceMethod · 0.80
goodMethod · 0.45

Tested by

no test coverage detected