Skip to main content

read_save_archive_from_bytes

Function read_save_archive_from_bytes 

Source
pub fn read_save_archive_from_bytes(bytes: &[u8]) -> Result<Erf, ErfBinaryError>
Expand description

Reads a save archive directly from bytes.

This helper accepts both MOD and SAV signatures on input and normalizes the in-memory ErfFileType to ErfFileType::Mod.

ยงErrors

The same as read_save_archive, which this reads through.