trying to lessen the space miniz taken
This commit is contained in:
13565
src/miniz.c
13565
src/miniz.c
File diff suppressed because it is too large
Load Diff
1470
src/miniz.h
1470
src/miniz.h
File diff suppressed because it is too large
Load Diff
@ -196,7 +196,7 @@ size_t compressData(const unsigned char *inputData, size_t inputSize,
|
|||||||
unsigned char *compressedData, size_t compressedSize) {
|
unsigned char *compressedData, size_t compressedSize) {
|
||||||
mz_ulong compressedSizeOut = compressedSize;
|
mz_ulong compressedSizeOut = compressedSize;
|
||||||
int compressResult = mz_compress2(compressedData, &compressedSizeOut,
|
int compressResult = mz_compress2(compressedData, &compressedSizeOut,
|
||||||
inputData, inputSize, MZ_BEST_COMPRESSION);
|
inputData, inputSize, MZ_UBER_COMPRESSION);
|
||||||
|
|
||||||
if (compressResult != Z_OK) {
|
if (compressResult != Z_OK) {
|
||||||
throw(std::runtime_error("Compression failed."));
|
throw(std::runtime_error("Compression failed."));
|
||||||
|
Reference in New Issue
Block a user