ZstdCompressor.create

ZstdCompressor create(int level = ZSTD_CLEVEL_DEFAULT)

Creates a new ZstdCompressor with the specified compression level.

Parameters

levelCompression level (default: ZSTD_CLEVEL_DEFAULT).

Returns

A new ZstdCompressor instance.

Throws

ZstdException if context creation fails.