MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / Size

Method Size

src/WraithXCOD/WraithXCOD/CascFileSystem.cpp:126–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126size_t CascFileSystem::Size(HANDLE handle)
127{
128 if (handle == NULL)
129 {
130 LastErrorCode = 0x345303;
131 return 0;
132 }
133
134 ULONGLONG result = 0;
135
136 if (!CascGetFileSize64(handle, &result))
137 {
138 LastErrorCode = 0x345303;
139 result = 0;
140 }
141 else
142 {
143 LastErrorCode = 0;
144 }
145
146 return result;
147}
148
149size_t CascFileSystem::EnumerateFiles(const std::string& pattern, std::function<void(const std::string&, const size_t)> onFileFound)
150{

Callers

nothing calls this directly

Calls 1

CascGetFileSize64Function · 0.85

Tested by

no test coverage detected