Files
sics/site_ansto/TESTS/check_zlib/README
Ferdi Franceschini 6e9684275a Test code for checking suitability of zlib for reading and writing compressed data.
r1490 | ffr | 2007-02-15 10:05:00 +1100 (Thu, 15 Feb 2007) | 2 lines
2012-11-15 12:59:08 +11:00

25 lines
748 B
Plaintext

PURPOSE:
This code is used to check the suitability of zlib for writing and reading compressed histogram data.
NOTE: zlib will transparently read uncompressed files.
2007-02-15
Test reading and writing sequences of 1 to 16M ints (PASSED).
mkdata.c: Makes a zipped file containing a sequence of ints starting from 0.
rdata.c: Reads a zipped/unzipped file expecting a sequence of ints starting from 0, max=16M ints.
USAGE:
make
./mkdata
To make data.gz
./rdata data.gz
To reada data.gz
Then gunzip data.gz and run
./rdata data
To test reading uncompressed files.
To change the number of ints written, edit mkdata.c and change the DATALENGTH.
To change the maximum number of ints that rdata.c can read, changed the DATALENGTH in rdata.c