ZstdCompressor

zio.compress.ZstdCompressor
See theZstdCompressor companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(level: Option[ZstdCompressionLevel], workers: Option[Int], customDictionary: Option[Array[Byte]]): ZstdCompressor

A Compressor for Zstd, based on the com.github.luben:zstd-jni library.

A Compressor for Zstd, based on the com.github.luben:zstd-jni library.

Value parameters

customDictionary

a custom dictionary, or None for no custom dictionary

level

The compression level to use. Defaults to level 3.

workers

The number of worker threads to use for parallel compression. Set to 0 to detect the number of CPU cores and use that number of worker threads. The actual number of worker threads is capped. Valid values: 0 and higher. Defaults to 1.

Attributes