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

Function extractFile

extlibs/elzip/src/elzip_fs_fallback.cpp:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117 }
118 void extractFile(std::string zipname, std::string filename, std::string target)
119 {
120 ziputils::unzipper zipFile;
121 zipFile.open(zipname.c_str());
122 zipFile.openEntry(filename.c_str());
123 std::ofstream wFile;
124 wFile.open(target, std::ios_base::binary | std::ios_base::out);
125 std::string dumped = zipFile.dump();
126 wFile.write(dumped.c_str(), dumped.size());
127 wFile.close();
128 }
129}

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