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

Method read

3ds/source/fsstream.cpp:137–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137u32 FSStream::read(void* buf, u32 sz)
138{
139 u32 rd = 0;
140 if (isPxi()) {
141 mResult = FSPXI_ReadFile(FsPxiHandle, std::get<FSPXI_File>(mHandle), &rd, mOffset, buf, sz);
142 }
143 else {
144 mResult = FSFILE_Read(std::get<Handle>(mHandle), &rd, mOffset, buf, sz);
145 }
146 if (R_FAILED(mResult)) {
147 if (rd > sz) {
148 rd = sz;
149 }
150 }
151 mOffset += rd;
152 return rd;
153}
154
155u32 FSStream::write(const void* buf, u32 sz)
156{

Callers 11

mainFunction · 0.45
read_bodyMethod · 0.45
do_GETMethod · 0.45
importTitleListCacheMethod · 0.45
isCacheFreshMethod · 0.45
readHeaderAtFunction · 0.45
extractCurrentSaveFunction · 0.45
restoreMethod · 0.45
copyFileMethod · 0.45
restoreMethod · 0.45
savReadMethod · 0.45

Calls

no outgoing calls

Tested by 2

read_bodyMethod · 0.36
do_GETMethod · 0.36