Project

General

Profile

Feature #5937

Zlib::Inflate#add_dictionary to pre-supply dictionaries for inflate streams

Added by drbrain (Eric Hodel) over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
[ruby-core:42240]

Description

The attached patch allows Zlib::Inflate users to supply dictionaries ahead of time in order to avoid handling the Zlib::NeedDict exception.

Multiple dictionaries may be provided. Zlib::Inflate will choose a matching dictionary based on the adler32 checksum of the provided dictionaries.


Files

zlib.c.add_dictionary.patch (3.77 KB) zlib.c.add_dictionary.patch drbrain (Eric Hodel), 01/27/2012 08:04 AM

Related issues

Related to Ruby master - Bug #5929: Zlib::Inflate#set_dictionary does not work with short inputClosed01/26/2012Actions

Also available in: Atom PDF