NdsForge.NET 1.0.1
Read, validate, edit, compare, and build Nintendo DS and DSi images from .NET
Loading...
Searching...
No Matches
NdsRegion.cs
1namespace NdsForge;
2
6#if DOXYGEN
7public record NdsRegion(long Offset, long Length)
8#else
9public readonly record struct NdsRegion(long Offset, long Length)
10#endif
11{
13 public long End => checked(Offset + Length);
14
16 public bool IsEmpty => Length == 0;
17
22 internal static NdsRegion FromUInt32(uint offset, uint length) => new(offset, length);
23}
Identifies a bounded range of bytes in an image.
Definition NdsRegion.cs:11
bool IsEmpty
Gets whether the region contains no bytes.
Definition NdsRegion.cs:16
long End
Computes the exclusive end offset used by FAT records and overflow-safe bounds checks.
Definition NdsRegion.cs:13