pub struct DecompiledFafb {
pub header: FafbHeader,
pub section_table: SectionTable,
pub data: Vec<u8>,
/* private fields */
}Expand description
A decompiled .fafb file with header, section table, string table, and raw data
Fields§
§header: FafbHeaderThe 32-byte header
section_table: SectionTableSection table with all entries
data: Vec<u8>Raw file data (for extracting section content)
Implementations§
Source§impl DecompiledFafb
impl DecompiledFafb
Sourcepub fn section_data(&self, entry: &SectionEntry) -> Option<&[u8]>
pub fn section_data(&self, entry: &SectionEntry) -> Option<&[u8]>
Extract the raw bytes for a section entry
Sourcepub fn section_string(&self, entry: &SectionEntry) -> Option<String>
pub fn section_string(&self, entry: &SectionEntry) -> Option<String>
Extract section data as a UTF-8 string
Sourcepub fn string_table(&self) -> &StringTable
pub fn string_table(&self) -> &StringTable
Get the string table
Sourcepub fn section_name(&self, entry: &SectionEntry) -> String
pub fn section_name(&self, entry: &SectionEntry) -> String
Get section name by entry — looks up in string table
Sourcepub fn get_section_by_name(&self, name: &str) -> Option<&[u8]>
pub fn get_section_by_name(&self, name: &str) -> Option<&[u8]>
Get section data by name
Sourcepub fn get_section_string_by_name(&self, name: &str) -> Option<String>
pub fn get_section_string_by_name(&self, name: &str) -> Option<String>
Get section data by name as string
Sourcepub fn dna_sections(&self) -> Vec<&SectionEntry>
pub fn dna_sections(&self) -> Vec<&SectionEntry>
Get all DNA sections
Sourcepub fn context_sections(&self) -> Vec<&SectionEntry>
pub fn context_sections(&self) -> Vec<&SectionEntry>
Get all Context sections
Sourcepub fn pointer_section(&self) -> Option<&SectionEntry>
pub fn pointer_section(&self) -> Option<&SectionEntry>
Get the Pointer section (typically “docs”)
Trait Implementations§
Source§impl Clone for DecompiledFafb
impl Clone for DecompiledFafb
Source§fn clone(&self) -> DecompiledFafb
fn clone(&self) -> DecompiledFafb
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecompiledFafb
impl RefUnwindSafe for DecompiledFafb
impl Send for DecompiledFafb
impl Sync for DecompiledFafb
impl Unpin for DecompiledFafb
impl UnsafeUnpin for DecompiledFafb
impl UnwindSafe for DecompiledFafb
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more