Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.45 KB

Readme.md

File metadata and controls

51 lines (37 loc) · 1.45 KB

Sarc Library

Modern SEAD/SEPD archive reader written in managed C#

Usage

Reading a Sarc File

byte[] data = File.ReadAllBytes("content/Pack/Bootup.pack");
Sarc sarc = Sarc.FromBinary(data);

Writing a Sarc File

/* ... */

using MemoryStream ms = new();
sarc.Write(ms);

Benchmarks

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

NuGet NuGet

NuGet

Install-Package SarcLibrary

Build From Source

git clone https://github.com/EPD-Libraries/SarcLibrary.git
dotnet build SarcLibrary

Special thanks to Léo Lam for his extensive research on EPD file formats.