LTRData.DiscUtils.Core
1.0.92
dotnet add package LTRData.DiscUtils.Core --version 1.0.92
NuGet\Install-Package LTRData.DiscUtils.Core -Version 1.0.92
<PackageReference Include="LTRData.DiscUtils.Core" Version="1.0.92" />
<PackageVersion Include="LTRData.DiscUtils.Core" Version="1.0.92" />
<PackageReference Include="LTRData.DiscUtils.Core" />
paket add LTRData.DiscUtils.Core --version 1.0.92
#r "nuget: LTRData.DiscUtils.Core, 1.0.92"
#:package LTRData.DiscUtils.Core@1.0.92
#addin nuget:?package=LTRData.DiscUtils.Core&version=1.0.92
#tool nuget:?package=LTRData.DiscUtils.Core&version=1.0.92
LTRData.DiscUtils.Core
Common .NET disk, filesystem, partition and volume abstractions for DiscUtils, including raw disks and format-discovery infrastructure.
Part of the LTRData DiscUtils fork. Package IDs use LTRData.DiscUtils; C# namespaces remain DiscUtils.
Installation
dotnet add package LTRData.DiscUtils.Core
Capabilities
| Capability | Support |
|---|---|
| Common disk / filesystem APIs | VirtualDisk, DiscFileSystem and related abstractions |
| Raw disk content | Read, create and write |
| BIOS/MBR and GPT partition tables | Read, initialize and modify |
| Discovery infrastructure | Disk, filesystem, transport and volume providers |
Usage notes
Includes partition/volume discovery, Windows dynamic-volume mapping and file transport. Core does not contain the NTFS, FAT, ISO, VHD or other individual format implementations; reference those packages separately. Register Core for generic RAW disk and local-file transport access. Filesystem constructors generally expect a volume stream, not a whole partitioned disk.
Block compression
Use the static methods for independent operations on caller-owned input and output buffers. They keep decoding state local to the call and can run concurrently with separate buffers. All three decoders default to Windows mode. Pass the corresponding mode enum for strict decoding. The modes describe tested differences between Windows and MS-XCA.
| Operation | Buffer and result |
|---|---|
XpressHuffman.TryDecompress |
Pass the exact uncompressed length as the destination. It decodes successive 64 KiB blocks. Both counts report progress, including words read ahead. Windows mode accepts the single one-bit-symbol table and checks complete trailing tables. |
XpressLz77.TryDecompress |
Reads through the end marker. The returned size may be smaller than the destination. Windows mode rejects a marker-only stream and strict mode accepts it. XpressLz77.Decompress requires an exact fit and throws InvalidDataException on malformed data or a size mismatch. |
LZNT1.TryDecompressBlock |
Reports the decoded prefix length. Windows mode can pad short intermediate chunks to 4096 bytes and ignores the header signature. Strict mode validates the signature and rejects short intermediate chunks when the next chunk is needed. |
LZNT1.TryCompressBlock |
Encodes standard 4096-byte chunks. Use the returned prefix for Compressed. AllZeros and Incompressible have no encoded payload. |
A failed decode can leave a written prefix. Check the Boolean result and the expected decoded length before using the output. The mode enums document differences at output boundaries, end markers and invalid tables. Windows compatibility covers the behaviors exercised by the native comparison tests.
Each Default or WindowsCompatible selector on these three codecs creates an independently configurable Windows-mode instance. Retain the instance when using IBlockDecompressor repeatedly. XPRESS uses the mode supplied to its constructor for interface calls. Its interface block-size property has no effect on decoding. Configure instances before sharing them and give each active operation separate buffers.
The instance methods on LZNT1 preserve historical encoding chunk sizes from 1 through 4096. Its BlockSize applies only to encoding. Smaller intermediate chunks can decode with padding on Windows, so use 4096 for interoperable multi-chunk streams. NTFS always writes standard chunks with the built-in codec. A mount passes its cluster size to an external compressor before encoding.
Registration
For automatic discovery, register the providers implemented by this package:
DiscUtils.Core.Formats.Register();
Direct use of the concrete APIs in this package does not require discovery registration. Each registration call covers only its own assembly. Register DiscUtils.Core.Formats.Register() as well when using generic disk opening through the local-file transport, and register other disk/filesystem providers as needed. These registration calls support trimming and Native AOT; this is not a guarantee for every operation in the package.
Example
using System;
using System.IO;
using DiscUtils;
DiscUtils.Core.Formats.Register();
using var disk = VirtualDisk.OpenDisk("disk.img", FileAccess.Read);
var volumes = new VolumeManager(disk);
foreach (var volume in volumes.GetLogicalVolumes())
Console.WriteLine(volume.Identity);
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. net11.0 is compatible. |
| .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.DiscUtils.Streams (>= 1.0.92)
-
.NETFramework 4.8
- LTRData.DiscUtils.Streams (>= 1.0.92)
- System.Text.Encoding.CodePages (>= 9.0.23)
-
.NETStandard 2.0
- LTRData.DiscUtils.Streams (>= 1.0.92)
- System.Text.Encoding.CodePages (>= 9.0.23)
-
.NETStandard 2.1
- LTRData.DiscUtils.Streams (>= 1.0.92)
- System.Text.Encoding.CodePages (>= 9.0.23)
-
net10.0
- LTRData.DiscUtils.Streams (>= 1.0.92)
-
net11.0
- LTRData.DiscUtils.Streams (>= 1.0.92)
-
net8.0
- LTRData.DiscUtils.Streams (>= 1.0.92)
-
net9.0
- LTRData.DiscUtils.Streams (>= 1.0.92)
NuGet packages (40)
Showing the top 5 NuGet packages that depend on LTRData.DiscUtils.Core:
| Package | Downloads |
|---|---|
|
Microsoft.CST.RecursiveExtractor
RecursiveExtractor is able to process the following formats: ar, bzip2, deb, gzip, iso, tar, vhd, vhdx, vmdk, wim, xzip, and zip. RecursiveExtractor automatically detects the archive type and fails gracefully when attempting to process malformed content. |
|
|
LTRData.DiscUtils.Iso9660
Managed .NET support for reading ISO 9660 optical-disc filesystems and building ISO images with Joliet and boot-image support. |
|
|
LTRData.DiscUtils.Ntfs
Managed .NET implementation for reading, formatting and modifying NTFS filesystems, including NTFS-specific file metadata. |
|
|
LTRData.DiscUtils.Udf
Managed .NET reader and virtual UDF 2.01 image builder for optical-disc filesystems. |
|
|
LTRData.DiscUtils.Vhdx
Managed .NET support for reading, creating and modifying fixed, dynamic and differencing Microsoft VHDX virtual disk images. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on LTRData.DiscUtils.Core:
| Repository | Stars |
|---|---|
|
microsoft/RecursiveExtractor
RecursiveExtractor is a .NET Standard 2.0 archive extraction Library, and Command Line Tool which can process 7zip, ar, bzip2, deb, gzip, iso, rar, tar, vhd, vhdx, vmdk, wim, xzip, and zip archives and any nested combination of the supported formats.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.92 | 0 | 12/5/2026 |
| 1.0.91 | 4,946 | 11/14/2026 |
| 1.0.90 | 23,206 | 10/11/2026 |
| 1.0.89 | 21,369 | 9/22/2026 |
| 1.0.88 | 12,591 | 8/3/2026 |
| 1.0.87 | 3,106 | 7/20/2026 |
| 1.0.86 | 9,145 | 7/4/2026 |
| 1.0.85 | 2,855 | 6/30/2026 |
| 1.0.84 | 1,987 | 6/27/2026 |
| 1.0.83 | 2,298 | 6/18/2026 |
| 1.0.82 | 29,586 | 5/26/2026 |
| 1.0.81 | 3,377 | 5/14/2026 |
| 1.0.80 | 7,639 | 4/24/2026 |
| 1.0.77 | 13,608 | 3/13/2026 |
| 1.0.76 | 4,261 | 3/10/2026 |
| 1.0.75 | 3,210 | 2/20/2026 |
| 1.0.74 | 1,742 | 2/18/2026 |
| 1.0.73 | 7,142 | 1/5/2026 |
| 1.0.72 | 7,424 | 11/25/2025 |
| 1.0.71 | 2,982 | 11/19/2025 |