#ifdef FOLLY_HAVE_LIBZSTD
/**
- * ZSTD_BETA compression
+ * ZSTD compression
*/
class ZSTDCodec final : public Codec {
public:
}
ZSTDCodec::ZSTDCodec(int level, CodecType type) : Codec(type) {
- DCHECK(type == CodecType::ZSTD_BETA);
+ DCHECK(type == CodecType::ZSTD);
switch (level) {
case COMPRESSION_LEVEL_FASTEST:
level_ = 1;
LZMA2_VARINT_SIZE = 7,
/**
- * Use ZSTD_BETA compression.
- * This format is not yet final; please do not rely on it for anything other
- * than testing purposes yet.
+ * Use ZSTD compression.
*/
- ZSTD_BETA = 8,
+ ZSTD = 8,
/**
* Use gzip compression. This is the same compression algorithm as ZLIB but
EXPECT_TRUE(getCodec(CodecType::LZMA2)->needsUncompressedLength());
EXPECT_FALSE(getCodec(CodecType::LZMA2_VARINT_SIZE)
->needsUncompressedLength());
- EXPECT_TRUE(getCodec(CodecType::ZSTD_BETA)->needsUncompressedLength());
+ EXPECT_TRUE(getCodec(CodecType::ZSTD)->needsUncompressedLength());
EXPECT_FALSE(getCodec(CodecType::GZIP)->needsUncompressedLength());
}
CodecType::LZ4_VARINT_SIZE,
CodecType::LZMA2,
CodecType::LZMA2_VARINT_SIZE,
- CodecType::ZSTD_BETA,
+ CodecType::ZSTD,
CodecType::GZIP)));
class CompressionVarintTest