Patch introduces zlib streaming API. I am using it in LLD.
(https://reviews.llvm.org/D31941).
Patch implements only compression (no decompression),
because that is what I was need and has simple API that allows to feed compressor
object with chunks of data and get compressed result part by part from client.
Docs uded in implementation were:
http://zlib.net/zlib_how.html
http://zlib.net/manual.html
It'd be tidier if this could be Expected<StreamCompression> instead (avoiding the unique_ptr indirection, etc) & helpful if the StreamCompression class was movable.