pub fn parse_plugin(input: &[u8]) -> Result<Plugin<'_>>
Expand description

Parses header and cell records from input bytes of a plugin file and outputs Plugin struct with extracted fields.

Arguments

  • input - A slice of bytes read from the plugin file

Examples

use skyrim_cell_dump::parse_plugin;

let plugin_contents = std::fs::read("Plugin.esp").unwrap();
let plugin = parse_plugin(&plugin_contents).unwrap();