std::unique_ptr<folly::IOBuf> CompressionCodec::uncompress( const folly::IOBuf& data, size_t uncompressedLength) { auto iov = data.getIov(); return uncompress(iov.data(), iov.size(), uncompressedLength); }
std::unique_ptr<folly::IOBuf> CompressionCodec::compress( const folly::IOBuf& data) { auto iov = data.getIov(); return compress(iov.data(), iov.size()); }