Add LZ4_FRAME codec
authorNick Terrell <terrelln@fb.com>
Fri, 24 Mar 2017 18:08:17 +0000 (11:08 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 24 Mar 2017 18:20:56 +0000 (11:20 -0700)
commitcca8b5c3bbaa204e56384720a3b1a0f8280fb54b
treee641d6b609f2a985a9575545efce013640f1853e
parent55cd50f37f6d8b137093fc976b780465442174fa
Add LZ4_FRAME codec

Summary:
The LZ4 Frame codec encodes data using the LZ4 frame format.
One advantage of the LZ4 frame format is that it has 4 magic bytes in the header, so users can transparently determine compression type.
It also allows the user to interop with the lz4 command line tool.

Reviewed By: yfeldblum

Differential Revision: D4715918

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