Skip to content

EPD-Libraries/SarcLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages