pub fn decompile(fafb_bytes: &[u8]) -> FafbResult<DecompiledFafb>Expand description
Decompile .fafb binary bytes into a structured representation.
Parses the header and section table, returning a DecompiledFafb
that allows access to individual sections.
ยงExample
use faf_rust_sdk::binary::compile::{compile, decompile};
use faf_rust_sdk::binary::SectionType;
let yaml = "faf_version: 2.5.0\nproject:\n name: test\n";
let fafb_bytes = compile(yaml).unwrap();
let result = decompile(&fafb_bytes).unwrap();
assert_eq!(result.header.version_major, 1);
let meta = result.get_section_string(SectionType::Meta).unwrap();
assert!(meta.contains("test"));