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

Calculates checksums used by Nintendo DS image structures. More...

Static Public Member Functions

static ushort ComputeCrc16 (ReadOnlySpan< byte > data, ushort seed=ushort.MaxValue)
 Calculates the CRC-16 used by Nintendo DS headers and banners.

Detailed Description

Calculates checksums used by Nintendo DS image structures.

Definition at line 4 of file NdsChecksums.cs.

Member Function Documentation

◆ ComputeCrc16()

ushort NdsForge.NdsChecksums.ComputeCrc16 ( ReadOnlySpan< byte > data,
ushort seed = ushort::MaxValue )
inlinestatic

Calculates the CRC-16 used by Nintendo DS headers and banners.

Parameters
dataThe bytes to checksum.
seedThe initial CRC value.
Returns
The calculated checksum.

Definition at line 10 of file NdsChecksums.cs.


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