Skip to content

Microsoft.IO.RecyclableMemoryStream 2.0.0

Choose a tag to compare

@benmwatson benmwatson released this 18 Mar 17:54
· 208 commits to master since this release
46bbc6d

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.
    • GetBuffer now throws OutOfMemoryException instead of InvalidOperationException if the needed size is too large for a contiguous array.
  • Other Changes

    • Removed use of Interlocked methods when checking whether the stream is disposed. This should improve performance. (Concurrent use of streams has never been supported.)
    • RecyclableMemoryStream now implements IBufferWriter<byte>
    • New method overloads of WriteTo that allow you write the contents of the stream directly to another byte[] buffer.
    • Reformatted all code documentation to be more readable.
  • Development-only Changes

    • Significantly improved unit test speed

Nuget: Microsoft.IO.RecyclableMemoryStream 2.0.0