Lines Matching defs:compr

62 static void test_compress(Byte *compr, uLong comprLen, Byte *uncompr,
68 err = compress(compr, &comprLen, (const Bytef*)hello, len);
73 err = uncompress(uncompr, &uncomprLen, compr, comprLen);
170 static void test_deflate(Byte *compr, uLong comprLen)
184 c_stream.next_out = compr;
209 static void test_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
221 d_stream.next_in = compr;
252 static void test_large_deflate(Byte *compr, uLong comprLen, Byte *uncompr,
265 c_stream.next_out = compr;
282 c_stream.next_in = compr;
306 static void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
318 d_stream.next_in = compr;
349 static void test_flush(Byte *compr, uLong *comprLen)
363 c_stream.next_out = compr;
369 compr[3]++; /* force an error in first compressed block */
385 static void test_sync(Byte *compr, uLong comprLen, Byte *uncompr,
397 d_stream.next_in = compr;
427 static void test_dict_deflate(Byte *compr, uLong comprLen)
444 c_stream.next_out = compr;
462 static void test_dict_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
474 d_stream.next_in = compr;
517 Byte *compr, *uncompr;
534 compr = (Byte*)calloc((uInt)comprLen, 1);
536 /* compr and uncompr are cleared to avoid reading uninitialized
539 if (compr == Z_NULL || uncompr == Z_NULL) {
548 test_compress(compr, comprLen, uncompr, uncomprLen);
554 test_deflate(compr, comprLen);
555 test_inflate(compr, comprLen, uncompr, uncomprLen);
557 test_large_deflate(compr, comprLen, uncompr, uncomprLen);
558 test_large_inflate(compr, comprLen, uncompr, uncomprLen);
560 test_flush(compr, &comprLen);
561 test_sync(compr, comprLen, uncompr, uncomprLen);
564 test_dict_deflate(compr, comprLen);
565 test_dict_inflate(compr, comprLen, uncompr, uncomprLen);
567 free(compr);