Amiga.FileFormats.ADF
0.3.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Amiga.FileFormats.ADF --version 0.3.0
NuGet\Install-Package Amiga.FileFormats.ADF -Version 0.3.0
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="Amiga.FileFormats.ADF" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Amiga.FileFormats.ADF --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Amiga.FileFormats.ADF, 0.3.0"
#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.
// Install Amiga.FileFormats.ADF as a Cake Addin #addin nuget:?package=Amiga.FileFormats.ADF&version=0.3.0 // Install Amiga.FileFormats.ADF as a Cake Tool #tool nuget:?package=Amiga.FileFormats.ADF&version=0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Amiga ADF File Format
This package allows reading and writing ADF disk images.
Requirements
This is all written in pure C#, so there are no dependencies beside .NET.
Virtual File System
The IADF
interface implements a virtual file system interface IVirtualFileSystem
which allows
access to files (IFile
) and directories (IDirectory
) in a tree hierarchy.
Usage
Reading a disk image.
var disk = ADFReader.LoadADFFile("myDiskImage.adf");
var rootDir = disk.RootDirectory;
var myFile = rootDir.GetFile("internalFile.txt");
Console.WriteLine($"File Size: {myFile.Size}");
var myFileData = myFile.Data;
Writing a disk image from a directory.
string name = "My Image";
bool includeEmptyDirectories = false;
bool bootable = false;
bool internationalMode = false;
bool hd = false;
var result = ADFWriter.WriteADFFile("myNewDiskImage.adf", name, "mySourceDir",
includeEmptyDirectories, "*.*", FileSystem.OFS, bootable, internationalMode, hd);
if (result == ADFWriteResult.Success)
{
Console.WriteLine("It worked!");
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Amiga.FileFormats.Core (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Use with caution. This is still in beta phase and not all features/operations are supported.