What does a zlib header look like?

unixman83 picture unixman83 · Jan 29, 2012 · Viewed 87.5k times · Source

In my project I need to know what a zlib header looks like. I've heard it's rather simple but I cannot find any description of the zlib header.

For example, does it contain a magic number?

Answer

VahidN picture VahidN · Jun 18, 2013

zlib magic headers

78 01 - No Compression/low
78 9C - Default Compression
78 DA - Best Compression