Method WithZeroBufferBehavior
WithZeroBufferBehavior(MemoryStreamSlimOptions, MemoryStreamSlimZeroBufferOption)
Sets the ZeroBufferBehavior property on the MemoryStreamSlimOptions instance.
public static MemoryStreamSlimOptions WithZeroBufferBehavior(this MemoryStreamSlimOptions options, MemoryStreamSlimZeroBufferOption zeroBufferBehavior)
Parameters
optionsMemoryStreamSlimOptionsThe MemoryStreamSlimOptions instance to modify.
zeroBufferBehaviorMemoryStreamSlimZeroBufferOptionThe zero buffer behavior to set.
Returns
- MemoryStreamSlimOptions
A new MemoryStreamSlimOptions instance with the specified zero buffer behavior.