Lines Matching refs:compr
66 static void test_compress(Byte *compr, uLong comprLen, Byte *uncompr, in test_compress() argument
71 err = compress(compr, &comprLen, (const Bytef*)hello, len); in test_compress()
76 err = uncompress(uncompr, &uncomprLen, compr, comprLen); in test_compress()
172 static void test_deflate(Byte *compr, uLong comprLen) { in test_deflate() argument
185 c_stream.next_out = compr; in test_deflate()
207 static void test_inflate(Byte *compr, uLong comprLen, Byte *uncompr, in test_inflate() argument
218 d_stream.next_in = compr; in test_inflate()
246 static void test_large_deflate(Byte *compr, uLong comprLen, Byte *uncompr, in test_large_deflate() argument
258 c_stream.next_out = compr; in test_large_deflate()
275 c_stream.next_in = compr; in test_large_deflate()
299 static void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr, in test_large_inflate() argument
310 d_stream.next_in = compr; in test_large_inflate()
338 static void test_flush(Byte *compr, uLong *comprLen) { in test_flush() argument
351 c_stream.next_out = compr; in test_flush()
357 compr[3]++; /* force an error in first compressed block */ in test_flush()
373 static void test_sync(Byte *compr, uLong comprLen, Byte *uncompr, in test_sync() argument
384 d_stream.next_in = compr; in test_sync()
414 static void test_dict_deflate(Byte *compr, uLong comprLen) { in test_dict_deflate() argument
430 c_stream.next_out = compr; in test_dict_deflate()
448 static void test_dict_inflate(Byte *compr, uLong comprLen, Byte *uncompr, in test_dict_inflate() argument
459 d_stream.next_in = compr; in test_dict_inflate()
498 Byte *compr, *uncompr; in main() local
515 compr = (Byte*)calloc((uInt)comprLen, 1); in main()
520 if (compr == Z_NULL || uncompr == Z_NULL) { in main()
529 test_compress(compr, comprLen, uncompr, uncomprLen); in main()
535 test_deflate(compr, comprLen); in main()
536 test_inflate(compr, comprLen, uncompr, uncomprLen); in main()
538 test_large_deflate(compr, comprLen, uncompr, uncomprLen); in main()
539 test_large_inflate(compr, comprLen, uncompr, uncomprLen); in main()
541 test_flush(compr, &comprLen); in main()
542 test_sync(compr, comprLen, uncompr, uncomprLen); in main()
545 test_dict_deflate(compr, comprLen); in main()
546 test_dict_inflate(compr, comprLen, uncompr, uncomprLen); in main()
548 free(compr); in main()