Adds an existing FileEntry object to the SARC.
The FileEntry to add.
Helper to add a raw file directly by specifying its data and destination path.
The file data (ArrayBuffer or Uint8Array).
The relative path/filename inside the archive.
Parses and loads a SARC archive from binary data. Supports both uncompressed SARC files and Yaz0-compressed archives.
The binary source data (ArrayBuffer or Uint8Array).
Removes a FileEntry from the SARC list.
The FileEntry reference to remove.
Compiles and builds the SARC archive into a single Uint8Array.
The Yaz0 compression level to apply to the output file (0 = no compression, 9 = maximum search depth compression). Defaults to 0.
The built SARC archive as a Uint8Array.
Class representing a Nintendo SARC (Simple Archive) file. Allows parsing existing archives, adding/removing files, and compiling new SARC archives.