Devedse.DiscUtils.Streams
1.0.111
dotnet add package Devedse.DiscUtils.Streams --version 1.0.111
NuGet\Install-Package Devedse.DiscUtils.Streams -Version 1.0.111
<PackageReference Include="Devedse.DiscUtils.Streams" Version="1.0.111" />
<PackageVersion Include="Devedse.DiscUtils.Streams" Version="1.0.111" />
<PackageReference Include="Devedse.DiscUtils.Streams" />
paket add Devedse.DiscUtils.Streams --version 1.0.111
#r "nuget: Devedse.DiscUtils.Streams, 1.0.111"
#:package Devedse.DiscUtils.Streams@1.0.111
#addin nuget:?package=Devedse.DiscUtils.Streams&version=1.0.111
#tool nuget:?package=Devedse.DiscUtils.Streams&version=1.0.111
LTRData.DiscUtils.Streams
.NET sparse-stream, buffer, extent, caching and stream-building primitives used by DiscUtils storage implementations.
Part of the LTRData DiscUtils fork. Package IDs use LTRData.DiscUtils; C# namespaces remain DiscUtils.
Installation
dotnet add package LTRData.DiscUtils.Streams
Usage notes
Use this package directly when you need sparse memory streams, stream composition, allocation extents, buffers or stream builders without depending on Core or a filesystem implementation. Ownership controls whether wrappers dispose the streams they wrap. No format registration is needed.
Storage flush requests
SparseStream.Flush(bool flushToDisk) is a virtual overload for requesting a stronger storage flush. By default it calls Flush(). Built-in forwarding wrappers pass this request through nested sparse streams; SparseStream.FromStream uses FileStream.Flush(bool) when wrapping a FileStream and ordinary Stream.Flush() for unknown streams. Custom image or remote-storage streams can override this overload to implement an appropriate durability barrier.
A successful call only establishes what the underlying runtime and storage actually guarantee; it cannot by itself promise power-loss durability or atomic writes. NTFS journal recovery uses Flush(true) for its write-ordering barriers. See NTFS replay durability.
Example
using System;
using DiscUtils.Streams;
using var stream = new SparseMemoryStream();
stream.SetLength(1024L * 1024 * 1024);
stream.Position = stream.Length - 1;
stream.WriteByte(42);
foreach (var extent in stream.Extents)
Console.WriteLine($"{extent.Start}: {extent.Length}");
Related packages
Documentation
Repository and capability matrix · Wiki · Migration guide · Format registration and Native AOT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6
- LTRData.Extensions (>= 1.0.23)
- System.Collections.Immutable (>= 1.7.1)
- System.Memory (>= 4.5.5)
- System.Security.Cryptography.Algorithms (>= 4.3.1)
- System.Threading.Tasks.Extensions (>= 4.5.4)
- System.ValueTuple (>= 4.5.0)
-
.NETFramework 4.8
- LTRData.Extensions (>= 1.0.23)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- System.Collections.Immutable (>= 9.0.22)
- System.Memory (>= 4.6.3)
- System.Threading.Tasks.Extensions (>= 4.6.3)
-
.NETStandard 2.0
- LTRData.Extensions (>= 1.0.23)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- System.Collections.Immutable (>= 9.0.22)
- System.Memory (>= 4.6.3)
- System.Threading.Tasks.Extensions (>= 4.6.3)
-
.NETStandard 2.1
- LTRData.Extensions (>= 1.0.23)
- System.Collections.Immutable (>= 9.0.22)
-
net10.0
- LTRData.Extensions (>= 1.0.23)
-
net8.0
- LTRData.Extensions (>= 1.0.23)
-
net9.0
- LTRData.Extensions (>= 1.0.23)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Devedse.DiscUtils.Streams:
| Package | Downloads |
|---|---|
|
Devedse.DiscUtils.Core
Common .NET disk, filesystem, partition and volume abstractions for DiscUtils, including raw disks and format-discovery infrastructure. |
|
|
Devedse.DiscUtils.Btrfs
Managed .NET support for reading Btrfs filesystems, including file contents and filesystem metadata. |
|
|
Devedse.DiscUtils.Registry
Managed .NET support for reading, creating and modifying Windows Registry hive files and applying pending registry transaction-log changes. |
|
|
Devedse.DiscUtils.MountFuse
FUSE integration for exposing DiscUtils filesystem implementations on platforms supported by LTRData.FuseDotNet. |
|
|
Devedse.DiscUtils.MountDokan
Windows integration for exposing DiscUtils filesystem implementations through the Dokan filesystem driver. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.111 | 1,125 | 11/8/2026 |
| 1.0.110 | 1,096 | 11/8/2026 |
| 1.0.109 | 1,093 | 11/7/2026 |
| 1.0.108 | 1,120 | 11/7/2026 |
| 1.0.107 | 2,559 | 7/4/2026 |
| 1.0.106 | 1,895 | 6/25/2026 |
| 1.0.105 | 1,630 | 6/19/2026 |
| 1.0.104 | 2,603 | 4/16/2026 |
| 1.0.103 | 1,455 | 4/15/2026 |
| 1.0.102 | 1,555 | 12/31/2025 |
| 1.0.101 | 2,061 | 12/30/2025 |
| 1.0.100 | 1,874 | 12/18/2025 |