| 210 | } |
| 211 | |
| 212 | String 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 |
no test coverage detected