MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / GetFileSize

Method GetFileSize

Goldleaf/source/fs/fs_PFS0.cpp:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 u64 PFS0::GetFileSize(const u32 idx) {
92 if(IsInvalidFileIndex(idx) || (idx >= this->files.size())) {
93 return 0;
94 }
95 else {
96 return this->files[idx].entry.size;
97 }
98 }
99
100 void PFS0::SaveFile(const u32 idx, fs::Explorer *path_exp, const std::string &path) {
101 if(IsInvalidFileIndex(idx) || (idx >= this->files.size())) {

Callers 15

SaveFileMethod · 0.95
DeleteLogFileIfTooBigFunction · 0.45
RebootWithPayloadFunction · 0.45
PrepareInstallationMethod · 0.45
WriteContentsMethod · 0.45
GenerateFromFunction · 0.45
OnFileSelectedMethod · 0.45
OnDirectorySelectedMethod · 0.45
GetUpdateInfoFunction · 0.45
CopyFileProgressFunction · 0.45
CopyFileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected