Soenneker.Extensions.MemoryStream
4.0.617
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.MemoryStream --version 4.0.617
NuGet\Install-Package Soenneker.Extensions.MemoryStream -Version 4.0.617
<PackageReference Include="Soenneker.Extensions.MemoryStream" Version="4.0.617" />
<PackageVersion Include="Soenneker.Extensions.MemoryStream" Version="4.0.617" />
<PackageReference Include="Soenneker.Extensions.MemoryStream" />
paket add Soenneker.Extensions.MemoryStream --version 4.0.617
#r "nuget: Soenneker.Extensions.MemoryStream, 4.0.617"
#:package Soenneker.Extensions.MemoryStream@4.0.617
#addin nuget:?package=Soenneker.Extensions.MemoryStream&version=4.0.617
#tool nuget:?package=Soenneker.Extensions.MemoryStream&version=4.0.617
Soenneker.Extensions.MemoryStream
Extension methods for working with MemoryStream instances, including efficient buffer access, conversion, positioning, and other common stream operations.
Installation
dotnet add package Soenneker.Extensions.MemoryStream
Current API
ToReadOnlyMemoryBytes()
using Soenneker.Extensions.MemoryStream;
using var stream = new MemoryStream();
stream.Write([1, 2, 3]);
ReadOnlyMemory<byte> bytes = stream.ToReadOnlyMemoryBytes(); // [1, 2, 3]
Returns a zero-copy ReadOnlyMemory<byte> view over the stream's underlying buffer from index 0 through Length. The stream's current Position does not affect the returned range.
Because the memory aliases the stream buffer, later writes can be visible through the returned memory. GetBuffer() must be permitted—streams created over a non-publicly-visible external buffer throw UnauthorizedAccessException. The length must fit in an int.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.621 | 57 | 9/24/2026 |
| 4.0.620 | 161 | 9/15/2026 |
| 4.0.619 | 102 | 9/12/2026 |
| 4.0.618 | 579 | 8/30/2026 |
| 4.0.617 | 117 | 8/29/2026 |
| 4.0.615 | 111 | 8/29/2026 |
| 4.0.614 | 106 | 8/29/2026 |
| 4.0.613 | 125 | 7/27/2026 |
| 4.0.612 | 124 | 7/16/2026 |
| 4.0.611 | 137 | 6/18/2026 |
| 4.0.610 | 143 | 6/5/2026 |
| 4.0.609 | 135 | 6/5/2026 |
| 4.0.608 | 142 | 4/22/2026 |
| 4.0.607 | 149 | 3/12/2026 |
| 4.0.606 | 149 | 3/12/2026 |
| 4.0.605 | 134 | 3/12/2026 |
| 4.0.604 | 148 | 3/12/2026 |
| 4.0.603 | 141 | 3/10/2026 |
| 4.0.602 | 142 | 3/9/2026 |
| 4.0.601 | 131 | 3/9/2026 |
Describe extension library scope separately from current API