[zlib_bench] Add compressed data integrity --check option

If --check option is given, compress the input file. Report the length
of the compresssed data, and the crc32 of the compressed data.

For the GZIP and ZLIB DEFLATE stream types, also report the data those
stream types [1] store at the end of the compressed data.

Add the --check option to program usage message. Also change the usage
message to always report the zlib verion number.

[1] See RFC-1952 GZIP, RFC 1950 ZLIB.

Bug: 798943,1316541
Change-Id: Id9d5a918b3ae142077d654f82ca6c9bd40762cfe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3591994
Auto-Submit: Noel Gordon <noel@chromium.org>
Reviewed-by: Adenilson Cavalcanti <cavalcantii@chromium.org>
Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#993581}
NOKEYCHECK=True
GitOrigin-RevId: ce61cdae957433ff9955863b07826f0d6fdc9f3c
1 file changed