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