pub struct DecompiledFafb {
pub header: FafbHeader,
pub section_table: SectionTable,
pub data: Vec<u8>,
}Expand description
A decompiled .fafb file with header, section 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 get_section(&self, section_type: SectionType) -> Option<&[u8]>
pub fn get_section(&self, section_type: SectionType) -> Option<&[u8]>
Get section data by type
Sourcepub fn get_section_string(&self, section_type: SectionType) -> Option<String>
pub fn get_section_string(&self, section_type: SectionType) -> Option<String>
Get section data by type as string
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