26 lines
817 B
Plaintext
26 lines
817 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)
|
|
Test reading and writing a sequence of 16M ints 1000 times. (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
|
|
|