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