Repository navigation
Microsoft.IO.RecyclableMemoryStream 2.0.0
Major new release!
-
Breaking Changes
- Removed 2 GB stream limit. Extremely large streams can be created by chaining together blocks. Attempts to convert a stream into a contiguous buffer longer than the runtime's limits will result in an exception.
- Removed build targets for net40, net45, net46, and netstandard1.4. Added net462.
- Changed some ETW events to provide more information.
- Refactored .NET events to match the information payloads of the ETW events.
GetBuffernow throwsOutOfMemoryExceptioninstead ofInvalidOperationExceptionif the needed size is too large for a contiguous array.
-
Other Changes
- Removed use of
Interlockedmethods when checking whether the stream is disposed. This should improve performance. (Concurrent use of streams has never been supported.) RecyclableMemoryStreamnow implementsIBufferWriter<byte>- New method overloads of
WriteTothat allow you write the contents of the stream directly to anotherbyte[]buffer. - Reformatted all code documentation to be more readable.
- Removed use of
-
Development-only Changes
- Significantly improved unit test speed