VOOZH about

URL: https://www.nuget.org/packages/Soenneker.Utils.MemoryStream/

⇱ NuGet Gallery | Soenneker.Utils.MemoryStream 4.0.1465




👁 Image
Soenneker.Utils.MemoryStream 4.0.1465

Prefix Reserved
dotnet add package Soenneker.Utils.MemoryStream --version 4.0.1465
 
 
NuGet\Install-Package Soenneker.Utils.MemoryStream -Version 4.0.1465
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Utils.MemoryStream" Version="4.0.1465" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.MemoryStream" Version="4.0.1465" />
 
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.MemoryStream" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Utils.MemoryStream --version 4.0.1465
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Utils.MemoryStream, 4.0.1465"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Utils.MemoryStream@4.0.1465
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Utils.MemoryStream&version=4.0.1465
 
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.MemoryStream&version=4.0.1465
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image

👁 alternate text is missing from this package README image
Soenneker.Utils.MemoryStream

An easy modern MemoryStream utility

A library for management and simple access of RecyclableMemoryStreamManager

Installation

dotnet add package Soenneker.Utils.MemoryStream

Usage

  1. Register the interop within DI (Program.cs).
public static async Task Main(string[] args)
{
 ...
 builder.Services.AddMemoryStreamUtil();
}
  1. Inject IMemoryStreamUtil wherever you need MemoryStream services

  2. Retrieve a fresh MemoryStream from

Example:

public class TestClass{

 IMemoryStreamUtil _memoryStreamUtil;

 public TestClass(IMemoryStreamUtil memoryStreamUtil)
 {
 _memoryStreamUtil = memoryStreamUtil;
 }

 public async ValueTask<MemoryStream> ReadFileIntoMemoryStream(string path)
 {
 MemoryStream memoryStream = await _memoryStreamUtil.Get(); // .GetSync() is also available

 FileStream fileStream = File.OpenRead(path);

 await fileStream.CopyToAsync(memoryStream);
 
 return memoryStream;
 }
}
Product Versions Compatible and additional computed target framework versions.
.NET net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Soenneker.Utils.MemoryStream:

Package Downloads
Soenneker.Utils.File

A utility library encapsulating asynchronous file IO operations

Soenneker.Cosmos.Serializer

A fast, lightweight JSON (de)serializer for Azure Cosmos DB

Soenneker.Blob.Download

A utility library for Azure Blob download operations

Soenneker.Extensions.HttpContent

A collection of helpful HttpContent extension methods

Soenneker.Blob.Upload

A utility library for Azure Blob upload operations

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.1465 1,613 6/16/2026
4.0.1464 3,019 6/16/2026
4.0.1463 12,179 6/10/2026
4.0.1462 10,914 6/10/2026
4.0.1461 5,585 6/9/2026
4.0.1460 10,805 6/9/2026
4.0.1459 19,482 6/6/2026
4.0.1458 2,871 6/6/2026
4.0.1457 314 6/6/2026
4.0.1456 7,667 6/6/2026
4.0.1454 729 6/5/2026
4.0.1453 95 6/5/2026
4.0.1451 2,992 6/5/2026
4.0.1449 570 6/5/2026
4.0.1448 368 6/5/2026
4.0.1447 56,057 5/13/2026
4.0.1446 6,712 5/12/2026
4.0.1445 22,488 5/2/2026
4.0.1444 29,556 4/23/2026
4.0.1443 1,834 4/23/2026
Loading failed

Update dependency Soenneker.Extensions.String to 4.0.690 (#1637)