FastLZStream

FastLZStream constructor

Initializes a new instance of the FastLZStream class prepared for compression.

public FastLZStream(Stream stream, int compressionLevel)
ParameterTypeDescription
streamStreamThe stream for saving compressed data.
compressionLevelInt32Use 1 for faster compression, use 2 for better compression ratio.

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null.
ArgumentExceptionstream does not support writing.
ArgumentOutOfRangeExceptioncompressionLevel is more than 2 or less than 1.

See Also