On May 29, 2007, at 8:15 AM, Satyam Sharma wrote:
skipping some checksum calculation if some flag (PRESET_DICT) is absent from the input stream about to be decompressed ...
You don't need to dissect the header manually to look for that bit. If you feed inflate() at least the first two bytes, it will return immediately with the Z_NEED_DICT return code if a preset dictionary is requested. You can force inflate() to return immediately after decoding the two byte header even if a preset dictionary is not requested by using the Z_BLOCK flush code.
Mark - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: JFFS2 using 'private' zlib header (was [RFC] LZO de/compression support - take 6)
- From: "Satyam Sharma" <[email protected]>
- Re: JFFS2 using 'private' zlib header (was [RFC] LZO de/compression support - take 6)
- From: Daniel Hazelton <[email protected]>
- Re: JFFS2 using 'private' zlib header (was [RFC] LZO de/compression support - take 6)
- References:
- [RFC] LZO de/compression support - take 6
- From: "Nitin Gupta" <[email protected]>
- Re: Makefile question (was [RFC] LZO de/compression support - take 6)
- From: "Satyam Sharma" <[email protected]>
- JFFS2 using 'private' zlib header (was [RFC] LZO de/compression support - take 6)
- From: Michael-Luke Jones <[email protected]>
- Re: JFFS2 using 'private' zlib header (was [RFC] LZO de/compression support - take 6)
- From: Daniel Hazelton <[email protected]>
- Re: JFFS2 using 'private' zlib header (was [RFC] LZO de/compression support - take 6)
- From: "Satyam Sharma" <[email protected]>
- [RFC] LZO de/compression support - take 6
- Prev by Date: Re: [RFC] LZO de/compression support - take 6
- Next by Date: Re: tty-related oops in latest kernel(s)?
- Previous by thread: Re: JFFS2 using 'private' zlib header (was [RFC] LZO de/compression support - take 6)
- Next by thread: Re: JFFS2 using 'private' zlib header (was [RFC] LZO de/compression support - take 6)
- Index(es):