Lines Matching defs:compr
60 static void test_compress(Byte *compr, uLong comprLen, Byte *uncompr,
65 err = compress(compr, &comprLen, (const Bytef*)hello, len);
70 err = uncompress(uncompr, &uncomprLen, compr, comprLen);
166 static void test_deflate(Byte *compr, uLong comprLen) {
179 c_stream.next_out = compr;
201 static void test_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
212 d_stream.next_in = compr;
240 static void test_large_deflate(Byte *compr, uLong comprLen, Byte *uncompr,
252 c_stream.next_out = compr;
269 c_stream.next_in = compr;
293 static void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
304 d_stream.next_in = compr;
332 static void test_flush(Byte *compr, uLong *comprLen) {
345 c_stream.next_out = compr;
351 compr[3]++; /* force an error in first compressed block */
367 static void test_sync(Byte *compr, uLong comprLen, Byte *uncompr,
378 d_stream.next_in = compr;
408 static void test_dict_deflate(Byte *compr, uLong comprLen) {
424 c_stream.next_out = compr;
442 static void test_dict_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
453 d_stream.next_in = compr;
492 Byte *compr, *uncompr;
509 compr = (Byte*)calloc((uInt)comprLen, 1);
511 /* compr and uncompr are cleared to avoid reading uninitialized
514 if (compr == Z_NULL || uncompr == Z_NULL) {
523 test_compress(compr, comprLen, uncompr, uncomprLen);
529 test_deflate(compr, comprLen);
530 test_inflate(compr, comprLen, uncompr, uncomprLen);
532 test_large_deflate(compr, comprLen, uncompr, uncomprLen);
533 test_large_inflate(compr, comprLen, uncompr, uncomprLen);
535 test_flush(compr, &comprLen);
536 test_sync(compr, comprLen, uncompr, uncomprLen);
539 test_dict_deflate(compr, comprLen);
540 test_dict_inflate(compr, comprLen, uncompr, uncomprLen);
542 free(compr);