25 internal void Validate()
29 throw new ArgumentOutOfRangeException(nameof(
MaxInputBytes),
"ELF resource limits must all be positive and permit one header.");
Bounds ELF ingestion and controls whether ndstool-style Overlay program headers become definitions.
static NdsElfImportOptions Default
Uses conservative limits suitable for ordinary SDK outputs while still allowing large homebrew progra...
int MaxProgramBytes
Limits the contiguous cartridge program produced after physical-address gaps are zero-filled.
int MaxOverlays
Limits private Overlay payloads constructed from toolchain-specific flagged program headers.
bool ImportOverlays
Controls whether Overlay segments are decoded or merely reported as present in the result.
int MaxProgramHeaders
Limits table iteration and allocation independently from the ELF format's 16-bit header count.
long MaxInputBytes
Limits buffered ELF input so non-seekable or hostile streams cannot force unbounded allocation.