RecyclableMemoryStreamManager constructor (1 of 2)
December 6, 2023 · View on GitHub
Initializes the memory manager with the default block/buffer specifications. This pool may have unbounded growth unless you modify Options.
public RecyclableMemoryStreamManager()
See Also
- class RecyclableMemoryStreamManager
- namespace Microsoft.IO
RecyclableMemoryStreamManager constructor (2 of 2)
Initializes the memory manager with the given block requiredSize.
public RecyclableMemoryStreamManager(Options options)
| parameter | description |
|---|---|
| options | Object specifying options for stream behavior. |
Exceptions
| exception | condition |
|---|---|
| InvalidOperationException | options.BlockSize.BlockSize is not a positive number, or options.LargeBufferMultiple.LargeBufferMultiple is not a positive number, or options.MaximumBufferSize.MaximumBufferSize is less than options.BlockSize, or options.MaximumSmallPoolFreeBytes.MaximumSmallPoolFreeBytes is negative, or options.MaximumLargePoolFreeBytes.MaximumLargePoolFreeBytes is negative, or options.MaximumBufferSize.MaximumBufferSize is not a multiple/exponential of options.LargeBufferMultiple.LargeBufferMultiple. |
See Also
- class Options
- class RecyclableMemoryStreamManager
- namespace Microsoft.IO