trying to lessen the space miniz taken

This commit is contained in:
2023-09-29 23:30:14 +08:00
parent 3f60201c55
commit 53913a8f44
3 changed files with 7278 additions and 7759 deletions

13565
src/miniz.c

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -196,7 +196,7 @@ size_t compressData(const unsigned char *inputData, size_t inputSize,
unsigned char *compressedData, size_t compressedSize) {
mz_ulong compressedSizeOut = compressedSize;
int compressResult = mz_compress2(compressedData, &compressedSizeOut,
inputData, inputSize, MZ_BEST_COMPRESSION);
inputData, inputSize, MZ_UBER_COMPRESSION);
if (compressResult != Z_OK) {
throw(std::runtime_error("Compression failed."));