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