microsoft/Microsoft.IO.RecyclableMemoryStream 3.0.0
microsoft/Microsoft.IO.RecyclableMemoryStream
Captured source
source ↗GH
Source ↗published Dec 11, 2023seen 1dcaptured 9hhttp 200method plain
Microsoft.IO.RecyclableMemoryStream 3.0.0
Repository: microsoft/Microsoft.IO.RecyclableMemoryStream
Tag: 3.0.0
Published: 2023-12-11T23:41:34Z
Prerelease: no
Release notes: Breaking Changes
- Removed
int-based constructor andGetStreamoverloads wherelong-based methods exist. - Removed all methods marked with
[Obsolete]: StreamDisposedEventArgs.ctor(Guid, string, string, string)RecyclableMemoryStreamManager.GetStream(Guid, string, Memory)RecyclableMemoryStreamManager.GetStream(Memory)RecyclableMemoryStreamManager.GetStream(string, Memory)- Enable nullable annotations and warnings. i.e., added
enabledto the project file. - All overloads of
RecyclableMemoryStreamManager.GetStreamnow return typeRecyclableMemoryStreaminstead ofMemoryStream. - Removed explicit targets for net462, netcoreapp2.1, and net5.0. Supported targets are netstandard2.0, netstandard2.1, and net6.0 (there are a few net6.0-specific optimizations).
- Moved all the configuration settings for
RecyclableMemoryStreamManagerto the newRecyclableMemoryStreamManager.Optionsclass. Removed many of the constructors as a result. This class will facilitate easier dependency injection through use of the Options pattern, for those who need it. - Renamed some settings' names to be more consistent (e.g.,
MaximumLargePoolFreeBytes)
New Features
- Added a new option for
RecyclableMemoryStreamManager:ZeroOutBuffer, which will cause all buffers to be cleared on allocation and when returning to the pool. Off by default.
Other Changes
- Upgrade NUnit test library to version 4.
- Fix some spelling issues in comments and variable names.
- Update code to the latest recommended C# syntax.