Repository navigation
Microsoft.IO.RecyclableMemoryStream 2.2.0
API changes:
- Add an override for
GetStreamthat takes aReadOnlySpan<byte>. This supercedes the versions ofGetStreamthat takeMemory<byte>, which were marked as[Obsolete].
Bug Fixes:
- Fixed:
GetReadOnlySequence()throwsArgumentOutOfRangeException
Performance Improvements:
- Removed enumerator allocation when returning blocks to the pool.
- Changed default size of stream's block list to 0 because
EnsureCapacitywill always run, potentially resizing the list anyway. - Removed unneeded closure allocation when copying buffers.
- Use
GC.AllocateUninitializedArrayin an additional spot, for better performance in .NET 5+.
Documentation:
- Improved documentation, standardized puncutation, fixed code formatting.