Add String Support to Compression Codec
authorFelix Handte <felixh@fb.com>
Wed, 15 Mar 2017 15:48:25 +0000 (08:48 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 15 Mar 2017 15:50:26 +0000 (08:50 -0700)
commita5093cb5789077f87204ddf9b0c7c9f261ea9e6c
tree246f0622955c90c6e8bfbf9c33a8b31d34da9523
parenta1abbb7abcb259acbd94d0d0929b79607a8ce806
Add String Support to Compression Codec

Summary:
This diff adds string-based compress and uncompress support to
folly::io::Codec. By default, the string API is implemented by translating to
and from IOBufs. Room is left for individual implementations to override that
behavior and go straight to the underlying library.

Reviewed By: yfeldblum

Differential Revision: D4690770

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