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

Method getEntrySize

extlibs/elzip/src/unzipper.cpp:115–129  ·  view source on GitHub ↗

Get the zip entry uncompressed size. return: zip entry uncompressed size

Source from the content-addressed store, hash-verified

113 // return:
114 // zip entry uncompressed size
115 unsigned int unzipper::getEntrySize()
116 {
117 if (entryOpen_)
118 {
119 unz_file_info64 oFileInfo;
120
121 int err = unzGetCurrentFileInfo64(zipFile_, &oFileInfo, nullptr, 0, nullptr, 0, nullptr, 0);
122
123 if (err == UNZ_OK)
124 {
125 return (unsigned int)oFileInfo.uncompressed_size;
126 }
127 }
128 return 0;
129 }
130
131 // Private method used to build a list of files and folders.
132 void unzipper::readEntries()

Callers

nothing calls this directly

Calls 1

unzGetCurrentFileInfo64Function · 0.85

Tested by

no test coverage detected