-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Derive Clone for InflateState to allow random-access reads
I am implementing Seek for a wrapper that reads deflated files. To do this, I will inflate the file once and save the dictionary and inflate state at several points in the file. Later, when I want to seek to some random place in the file, I will use the cloned state+dict to position to a known file position and then inflate until I reach the data I need. To support this, I need to be able to Clone the InflateState and its parts (the current dictionary). Derive Clone for InflateState, HuffmanTable and DecompressorOxide.
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters