Lines Matching refs:compr
56 procedure test_compress(compr: Pointer; comprLen: LongInt;
63 err := compress(compr, comprLen, hello, len);
68 err := uncompress(uncompr, uncomprLen, compr, comprLen);
184 procedure test_deflate(compr: Pointer; comprLen: LongInt);
199 c_stream.next_out := compr;
229 procedure test_inflate(compr: Pointer; comprLen : LongInt;
240 d_stream.next_in := compr;
272 procedure test_large_deflate(compr: Pointer; comprLen: LongInt;
284 c_stream.next_out := compr;
299 c_stream.next_in := compr;
324 procedure test_large_inflate(compr: Pointer; comprLen: LongInt;
335 d_stream.next_in := compr;
368 procedure test_flush(compr: Pointer; var comprLen : LongInt);
383 c_stream.next_out := compr;
389 Inc(PByteArray(compr)^[3]); (* force an error in first compressed block *)
407 procedure test_sync(compr: Pointer; comprLen: LongInt;
418 d_stream.next_in := compr;
450 procedure test_dict_deflate(compr: Pointer; comprLen: LongInt);
465 c_stream.next_out := compr;
484 procedure test_dict_inflate(compr: Pointer; comprLen: LongInt;
495 d_stream.next_in := compr;
528 var compr, uncompr: Pointer;
540 GetMem(compr, comprLen);
542 if (compr = NIL) or (uncompr = NIL) then
547 FillChar(compr^, comprLen, 0);
552 test_compress(compr, comprLen, uncompr, uncomprLen);
565 test_deflate(compr, comprLen);
569 test_inflate(compr, comprLen, uncompr, uncomprLen);
574 test_large_deflate(compr, comprLen, uncompr, uncomprLen);
578 test_large_inflate(compr, comprLen, uncompr, uncomprLen);
583 test_flush(compr, comprLen);
587 test_sync(compr, comprLen, uncompr, uncomprLen);
593 test_dict_deflate(compr, comprLen);
594 test_dict_inflate(compr, comprLen, uncompr, uncomprLen);
597 FreeMem(compr, comprLen);