Table of Contents

Method WithZeroBufferBehavior

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

WithZeroBufferBehavior(MemoryStreamGZipOptions, MemoryStreamSlimZeroBufferOption)

Sets the ZeroBufferBehavior property on the NewStreamOptions property value.

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

Parameters

options MemoryStreamGZipOptions

The MemoryStreamGZipOptions instance to modify.

zeroBufferBehavior MemoryStreamSlimZeroBufferOption

The zero buffer behavior to set.

Returns

MemoryStreamGZipOptions

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