MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / dump

Method dump

extlibs/elzip/src/unzipper.cpp:185–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 }
184
185 std::string unzipper::dump()
186 {
187 if (isOpenEntry())
188 {
189 unsigned int size = getEntrySize();
190 char* buf = new char[size];
191 size = unzReadCurrentFile(zipFile_, buf, size);
192 std::string ret = "";
193 if (size > 0)
194 ret = std::string(buf, size);
195 delete[] buf;
196 return ret;
197 }
198 throw std::runtime_error("Entry is not opened");
199 }
200};

Callers 4

extractZipFunction · 0.45
extractFileFunction · 0.45
extractZipFunction · 0.45
extractFileFunction · 0.45

Calls 2

unzReadCurrentFileFunction · 0.85
stringClass · 0.50

Tested by

no test coverage detected