Table of Contents

Class MemoryStreamZLibOptionsExtensions

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

Extension methods for MemoryStreamZLibOptions instances.

public static class MemoryStreamZLibOptionsExtensions
Inheritance
MemoryStreamZLibOptionsExtensions

Methods

WithCompressionLevel(MemoryStreamZLibOptions, CompressionLevel)

Sets the CompressionLevel property on the MemoryStreamZLibOptions instance.

WithCompressionStrategy(MemoryStreamZLibOptions, ZLibCompressionStrategy)

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

WithZeroBufferBehavior(MemoryStreamZLibOptions, MemoryStreamSlimZeroBufferOption)

Sets the ZeroBufferBehavior property on the NewStreamOptions property value.