NdsForge.NET
1.0.1
Read, validate, edit, compare, and build Nintendo DS and DSi images from .NET
Loading...
Searching...
No Matches
NdsRegion.cs
1
namespace
NdsForge
;
2
6
#if DOXYGEN
7
public
record
NdsRegion
(
long
Offset,
long
Length)
8
#else
9
public
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
}
NdsForge.NdsRegion
Identifies a bounded range of bytes in an image.
Definition
NdsRegion.cs:11
NdsForge.NdsRegion.IsEmpty
bool IsEmpty
Gets whether the region contains no bytes.
Definition
NdsRegion.cs:16
NdsForge.NdsRegion.End
long End
Computes the exclusive end offset used by FAT records and overflow-safe bounds checks.
Definition
NdsRegion.cs:13
NdsForge
Definition
NdsBanner.cs:5
src
NdsForge
Model
NdsRegion.cs
Generated by
1.17.0