Modern SEAD/SEPD archive reader written in managed C#
byte[] data = File.ReadAllBytes("content/Pack/Bootup.pack");
Sarc sarc = Sarc.FromBinary(data);/* ... */
using MemoryStream ms = new();
sarc.Write(ms);| Function | Elapsed | Allocated |
|---|---|---|
| Read TitleBG (143MB, LE) | 12.12 us | 64.62 KB |
| Read TitleBG (75MB, BE) | 12.04 us | 64.73 KB |
| Write TitleBG (143MB, LE) | 12.39 ms | 12 B |
| Write TitleBG (75MB, BE) | 6.59 ms | 1 B |
| Read TitleBG (Immutable) (143MB, LE) | 16.61 ns | - |
| Read TitleBG (Immutable) (75MB, BE) | 16.27 ns | - |
Install-Package SarcLibrarygit clone https://github.com/EPD-Libraries/SarcLibrary.git
dotnet build SarcLibrarySpecial thanks to Léo Lam for his extensive research on EPD file formats.