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


RecyclableMemoryStreamManager constructor (2 of 2)

Initializes the memory manager with the given block requiredSize.

public RecyclableMemoryStreamManager(Options options)
parameterdescription
optionsObject specifying options for stream behavior.

Exceptions

exceptioncondition
InvalidOperationExceptionoptions.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