gzip file - does it have a block header like bzip2 does?
Every compressed block in bzip2 format have a header, which begins with ".compressed_magic:48 = 开发者_运维百科0x314159265359 (BCD (pi))"
. So It can be rather easy to detect middle of big bzip2 in binary form.
Does the gzip format have the same magic constants in the middle of the big file?
or this question is like: does gzip have a gziprecover like bzip2 has bzip2recover
http://www.gzip.org/zlib/rfc-gzip.html I didnt reread it, but as far as I remember, then no block headers in that format.
精彩评论