Table of Contents

Method WithZeroBufferBehavior

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

WithZeroBufferBehavior(MemoryStreamSlimOptions, MemoryStreamSlimZeroBufferOption)

Sets the ZeroBufferBehavior property on the MemoryStreamSlimOptions instance.

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

Parameters

options MemoryStreamSlimOptions

The MemoryStreamSlimOptions instance to modify.

zeroBufferBehavior MemoryStreamSlimZeroBufferOption

The zero buffer behavior to set.

Returns

MemoryStreamSlimOptions

A new MemoryStreamSlimOptions instance with the specified zero buffer behavior.