CompressionError if opts.format is neither
CompressionFormat.AUTO_DETECT nor CompressionFormat.LZ4.
(CompressionOptions opts)Construct a new LZ4 compressor with the given options.
If opts.format is CompressionFormat.AUTO_DETECT, it is normalised to CompressionFormat.LZ4. Any other format value results in a CompressionError with ErrorCode.INVALID_INPUT.
opts | Compression options to use for this compressor. |
CompressionError if opts.format is neither
CompressionFormat.AUTO_DETECT nor CompressionFormat.LZ4.