NdsForge.NET 1.0.1
Read, validate, edit, compare, and build Nintendo DS and DSi images from .NET
Loading...
Searching...
No Matches
NdsForge.NdsImageComparer Class Reference

Compares hash-bearing manifests so tooling can distinguish content edits from identity and layout changes. More...

Static Public Member Functions

static async ValueTask< NdsImageDiffCompareAsync (NdsImage left, NdsImage right, CancellationToken cancellationToken=default)
 Captures and compares two live images without taking ownership of either source.
static NdsImageDiff Compare (NdsImageManifest left, NdsImageManifest right)
 Compares detached manifests without reading ROM bytes, making review artifacts usable in offline CI stages.

Detailed Description

Compares hash-bearing manifests so tooling can distinguish content edits from identity and layout changes.

Definition at line 6 of file NdsImageComparer.cs.

Member Function Documentation

◆ Compare()

NdsImageDiff NdsForge.NdsImageComparer.Compare ( NdsImageManifest left,
NdsImageManifest right )
inlinestatic

Compares detached manifests without reading ROM bytes, making review artifacts usable in offline CI stages.

Parameters
leftValidated baseline manifest.
rightValidated target manifest.
Returns
All header, Program, file, Overlay, Banner, DSi, and physical-layout changes.

Definition at line 29 of file NdsImageComparer.cs.

◆ CompareAsync()

async ValueTask< NdsImageDiff > NdsForge.NdsImageComparer.CompareAsync ( NdsImage left,
NdsImage right,
CancellationToken cancellationToken = default )
inlinestatic

Captures and compares two live images without taking ownership of either source.

Parameters
leftBaseline image that remains live through hashing.
rightTarget image that remains live through hashing.
cancellationTokenCancels either manifest capture before a partial diff is returned.
Returns
A deterministic complete comparison.

Definition at line 13 of file NdsImageComparer.cs.


The documentation for this class was generated from the following file: