Cyan
Cyan

Reputation: 13968

How does zlib works with Z_FIXED strategy?

A quick look at the documentation states that :

Z_FIXED prevents the use of dynamic Huffman codes, 
allowing for a simpler decoder for special applications.

So, if it does not use dynamic Huffman, what does it uses instead ? A static table ?

If so, where is it defined ? Can it be defined and loaded by the user ? (or hacked into the code ?)

Upvotes: 1

Views: 1277

Answers (1)

Mark Adler
Mark Adler

Reputation: 112482

The fixed tables are defined in the deflate format specification.

Upvotes: 3

Related Questions