| 83 | } |
| 84 | |
| 85 | bool ZipFile::Add(const StringImpl& fileName, Span<uint8> data) |
| 86 | { |
| 87 | if (mData == NULL) |
| 88 | return false; |
| 89 | |
| 90 | if (!mz_zip_writer_add_mem(&mData->mZip, fileName.c_str(), data.mVals, data.mSize, MZ_NO_COMPRESSION)) |
| 91 | return false; |
| 92 | |
| 93 | return true; |
| 94 | } |
| 95 | |
| 96 | |
| 97 | bool ZipFile::Get(const StringImpl& fileName, Array<uint8>& data) |
no test coverage detected