Skip to main content

DecompiledFafb

Struct DecompiledFafb 

Source
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: FafbHeader

The 32-byte header

§section_table: SectionTable

Section table with all entries

§data: Vec<u8>

Raw file data (for extracting section content)

Implementations§

Source§

impl DecompiledFafb

Source

pub fn section_data(&self, entry: &SectionEntry) -> Option<&[u8]>

Extract the raw bytes for a section entry

Source

pub fn section_string(&self, entry: &SectionEntry) -> Option<String>

Extract section data as a UTF-8 string

Source

pub fn string_table(&self) -> &StringTable

Get the string table

Source

pub fn section_name(&self, entry: &SectionEntry) -> String

Get section name by entry — looks up in string table

Source

pub fn get_section_by_name(&self, name: &str) -> Option<&[u8]>

Get section data by name

Source

pub fn get_section_string_by_name(&self, name: &str) -> Option<String>

Get section data by name as string

Source

pub fn dna_sections(&self) -> Vec<&SectionEntry>

Get all DNA sections

Source

pub fn context_sections(&self) -> Vec<&SectionEntry>

Get all Context sections

Source

pub fn pointer_section(&self) -> Option<&SectionEntry>

Get the Pointer section (typically “docs”)

Trait Implementations§

Source§

impl Clone for DecompiledFafb

Source§

fn clone(&self) -> DecompiledFafb

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DecompiledFafb

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.