mirror of
https://github.com/SabreTools/NDecrypt.git
synced 2026-09-23 23:35:04 +00:00
29 lines
673 B
C#
29 lines
673 B
C#
|
|
using System.IO;
|
|||
|
|
|
|||
|
|
namespace ThreeDS.Headers
|
|||
|
|
{
|
|||
|
|
public class CodeSetInfo
|
|||
|
|
{
|
|||
|
|
public byte[] Address = new byte[0x04];
|
|||
|
|
public uint PhysicalRegionSizeInPages;
|
|||
|
|
public uint SizeInBytes;
|
|||
|
|
|
|||
|
|
public static CodeSetInfo Read(BinaryReader reader)
|
|||
|
|
{
|
|||
|
|
CodeSetInfo csi = new CodeSetInfo();
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
csi.Address = reader.ReadBytes(4);
|
|||
|
|
csi.PhysicalRegionSizeInPages = reader.ReadUInt32();
|
|||
|
|
csi.SizeInBytes = reader.ReadUInt32();
|
|||
|
|
return csi;
|
|||
|
|
}
|
|||
|
|
catch
|
|||
|
|
{
|
|||
|
|
return null;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|