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

Function extractFile

extlibs/elzip/src/elzip.cpp:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 void extractFile(std::string zipname, std::string filename, std::string target)
38 {
39 ziputils::unzipper zipFile;
40 zipFile.open(zipname.c_str());
41 zipFile.openEntry(filename.c_str());
42 std::ofstream wFile;
43 wFile.open(target, std::ios_base::binary | std::ios_base::out);
44 std::string dumped = zipFile.dump();
45 wFile.write(dumped.c_str(), dumped.size());
46 wFile.close();
47 }
48}

Callers

nothing calls this directly

Calls 7

openEntryMethod · 0.80
openMethod · 0.45
c_strMethod · 0.45
dumpMethod · 0.45
writeMethod · 0.45
sizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected