Add zlib/gzip streaming support
authorNick Terrell <terrelln@fb.com>
Wed, 7 Jun 2017 04:28:09 +0000 (21:28 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 7 Jun 2017 04:35:05 +0000 (21:35 -0700)
commit641ad8da9ecd87271bb3fcf05d06d9b7d85e5ff9
treeada9f0618ce18ae709766bb9ceed0567aae70198
parent8dd0e3e906589a991a1050f5c0c653d5740e3dd4
Add zlib/gzip streaming support

Summary:
Add streaming interface to the ZlibCodec.
Implement ZlibStreamCodec::doCompress() and ZlibStreamCodec::doUncompress() using the streaming interface. fbgs CodecType::ZLIB and check that no caller requires thread-safety.
I found one caller, but it was fixed in D5090855.

Reviewed By: yfeldblum

Differential Revision: D5169338

fbshipit-source-id: 40478e162143623ad28fd8bc937d0195521f13fe
folly/io/Compression.cpp