I'd like to be able to use zlib's inflate/deflate functionality to compress/uncompress a stream of data in-memory. An example use-case is to be able to read compress data from or write compressed data to a file opened with mmap such that the entire contents of the file doesn't have to be loaded in-memory at once (useful for large files).
I'd like to be able to use zlib's inflate/deflate functionality to compress/uncompress a stream of data in-memory. An example use-case is to be able to read compress data from or write compressed data to a file opened with mmap such that the entire contents of the file doesn't have to be loaded in-memory at once (useful for large files).
For reference: http://zlib.net/manual.html