osgx
osgx

Reputation: 94445

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

Upvotes: 1

Views: 784

Answers (1)

Cine
Cine

Reputation: 4402

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.

Upvotes: 2

Related Questions