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