Add streaming API
authorNick Terrell <terrelln@fb.com>
Wed, 24 May 2017 21:59:41 +0000 (14:59 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 24 May 2017 22:05:53 +0000 (15:05 -0700)
commit74560278227a11b3080a756d2fffb154caf9e2f1
tree8fd97a73fc3b53a6ee47a8e40df7d85c28599a0a
parente70058f47d312aaf194207ff6034089850750c1e
Add streaming API

Summary:
Adds a C-style streaming API to `folly/io/Compression.h`, with a zlib-esque interface.
Stacked diffs will add streaming support to zstd, zlib, gzip, lzma, lz4_frame, and automatic codecs.
This interface is targeting advanced users who are building higher level interfaces.
They can use this as a common base so they don't have to reimplement the same code for every codec.

Reviewed By: yfeldblum

Differential Revision: D5026332

fbshipit-source-id: e3abf1767b493c2fef153b895858a3a81b67d989
folly/io/Compression.cpp
folly/io/Compression.h
folly/io/test/CompressionTest.cpp