Table of Contents

Method WithCompressionLevel

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

WithCompressionLevel(MemoryStreamZLibOptions, CompressionLevel)

Sets the CompressionLevel property on the MemoryStreamZLibOptions instance.

public static MemoryStreamZLibOptions WithCompressionLevel(this MemoryStreamZLibOptions options, CompressionLevel compressionLevel)

Parameters

options MemoryStreamZLibOptions

The MemoryStreamZLibOptions instance to modify.

compressionLevel CompressionLevel

The compression level to set.

Returns

MemoryStreamZLibOptions

A new MemoryStreamZLibOptions instance with the specified compression level.