Table of Contents

Class MemoryStreamDeflateOptionsExtensions

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

Extension methods for MemoryStreamDeflateOptions instances.

public static class MemoryStreamDeflateOptionsExtensions
Inheritance
MemoryStreamDeflateOptionsExtensions

Methods

WithCompressionLevel(MemoryStreamDeflateOptions, CompressionLevel)

Sets the CompressionLevel property on the MemoryStreamDeflateOptions instance.

WithCompressionStrategy(MemoryStreamDeflateOptions, ZLibCompressionStrategy)

Sets the CompressionStrategy property on the MemoryStreamDeflateOptions instance [Available in .NET 9.0 and later only].

WithZeroBufferBehavior(MemoryStreamDeflateOptions, MemoryStreamSlimZeroBufferOption)

Sets the ZeroBufferBehavior property on the NewStreamOptions property value.