Table of Contents

Method WithZeroBufferBehavior

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

WithZeroBufferBehavior(MemoryStreamDeflateOptions, MemoryStreamSlimZeroBufferOption)

Sets the ZeroBufferBehavior property on the NewStreamOptions property value.

public static MemoryStreamDeflateOptions WithZeroBufferBehavior(this MemoryStreamDeflateOptions options, MemoryStreamSlimZeroBufferOption zeroBufferBehavior)

Parameters

options MemoryStreamDeflateOptions

The MemoryStreamDeflateOptions instance to modify.

zeroBufferBehavior MemoryStreamSlimZeroBufferOption

The zero buffer behavior to set.

Returns

MemoryStreamDeflateOptions

A new MemoryStreamDeflateOptions instance with the specified zero buffer behavior applied to the NewStreamOptions property value.