MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getFileEntry

Method getFileEntry

Engine/source/core/util/zip/zipObject.cpp:212–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212String ZipObject::getFileEntry(S32 idx)
213{
214 if(mZipArchive == NULL)
215 return "";
216
217 const Zip::CentralDir &dir = (*mZipArchive)[idx];
218 char buffer[1024];
219 S32 chars = dSprintf(buffer, sizeof(buffer), "%s\t%d\t%d\t%d\t%08x",
220 dir.mFilename.c_str(), dir.mUncompressedSize, dir.mCompressedSize,
221 dir.mCompressMethod, dir.mCRC32);
222 if (chars < sizeof(buffer))
223 buffer[chars] = 0;
224
225 return String(buffer);
226}
227
228//-----------------------------------------------------------------------------
229// Console Methods

Callers 1

zipObject.cppFile · 0.80

Calls 3

dSprintfFunction · 0.85
StringClass · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected