6 Commits

Author SHA1 Message Date
Mark Adler
abd3d1a289 Update zran version. 2024-02-04 18:51:31 -08:00
Mark Adler
037bca67fd Allocate the dictionaries in examples/zran.c.
This reduces the memory needed for dictionaries, and avoids the
need to reallocate the index at the end to return unused memory.
2024-02-04 18:51:14 -08:00
Mark Adler
6378d33478 Provide a reusable inflate engine in the index in example/zran.c.
Avoids the overhead of creating a new inflate engine for each
random access extraction.
2024-02-04 18:49:40 -08:00
Mark Adler
be4db0a79a Set returned index to NULL on an index build error in zran.c.
An attempt to use the returned pointer in deflate_index_extract()
will now return cleanly with an error. The returned pointer can
now also be used with deflate_index_free() even on error.
2024-02-04 18:48:30 -08:00
Mark Adler
eb0e038b29 Rewrite of zran in examples. See version history in zran.c. 2023-02-18 20:53:39 -08:00
Mark Adler
921d81b2a8 Fix the zran.c example to work on a multiple-member gzip file. 2018-10-14 09:57:34 -07:00