Table of Contents

Method WithZeroBufferBehavior

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

WithZeroBufferBehavior(MemoryStreamZLibOptions, MemoryStreamSlimZeroBufferOption)

Sets the ZeroBufferBehavior property on the NewStreamOptions property value.

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

Parameters

options MemoryStreamZLibOptions

The MemoryStreamZLibOptions instance to modify.

zeroBufferBehavior MemoryStreamSlimZeroBufferOption

The zero buffer behavior to set.

Returns

MemoryStreamZLibOptions

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