pub struct Module<'a> {
pub default_func_prefix: String,
pub default_data_prefix: String,
/* private fields */
}Fields§
§default_func_prefix: String§default_data_prefix: StringImplementations§
Source§impl<'a> Module<'a>
impl<'a> Module<'a>
pub fn new( symbol_map: &mut SymbolMap, options: ModuleOptions<'a>, ) -> Result<Module<'a>, ModuleError>
Sourcepub fn new_arm9(
name: String,
symbol_map: &mut SymbolMap,
relocations: Relocations,
sections: Sections,
code: &'a [u8],
) -> Result<Module<'a>, ModuleError>
👎Deprecated
pub fn new_arm9( name: String, symbol_map: &mut SymbolMap, relocations: Relocations, sections: Sections, code: &'a [u8], ) -> Result<Module<'a>, ModuleError>
Depricated, use Self::new instead.
Creates a new ARM9 main module.
pub fn analyze_arm9( arm9: &'a Arm9<'_>, unknown_autoloads: &[&Autoload<'_>], symbol_maps: &mut SymbolMaps, options: &AnalysisOptions, ) -> Result<Self, ModuleError>
Sourcepub fn new_overlay(
name: String,
symbol_map: &mut SymbolMap,
relocations: Relocations,
sections: Sections,
options: OverlayModuleOptions<'a>,
) -> Result<Self, ModuleError>
👎Deprecated
pub fn new_overlay( name: String, symbol_map: &mut SymbolMap, relocations: Relocations, sections: Sections, options: OverlayModuleOptions<'a>, ) -> Result<Self, ModuleError>
Depricated, use Self::new instead.
Creates a new overlay module.
pub fn analyze_overlay( overlay: &'a Overlay<'_>, symbol_maps: &mut SymbolMaps, options: &AnalysisOptions, ) -> Result<Self, ModuleError>
Sourcepub fn new_autoload(
name: String,
symbol_map: &mut SymbolMap,
relocations: Relocations,
sections: Sections,
kind: AutoloadKind,
code: &'a [u8],
) -> Result<Self, ModuleError>
👎Deprecated
pub fn new_autoload( name: String, symbol_map: &mut SymbolMap, relocations: Relocations, sections: Sections, kind: AutoloadKind, code: &'a [u8], ) -> Result<Self, ModuleError>
Depricated, use Self::new instead.
Creates a new autoload module.
pub fn analyze_itcm( autoload: &'a Autoload<'_>, symbol_maps: &mut SymbolMaps, options: &AnalysisOptions, ) -> Result<Self, ModuleError>
pub fn analyze_dtcm( autoload: &'a Autoload<'_>, symbol_maps: &mut SymbolMaps, options: &AnalysisOptions, ) -> Result<Self, ModuleError>
pub fn analyze_unknown_autoload( autoload: &'a Autoload<'_>, symbol_maps: &mut SymbolMaps, options: &AnalysisOptions, ) -> Result<Self, ModuleError>
pub fn relocations(&self) -> &Relocations
pub fn relocations_mut(&mut self) -> &mut Relocations
pub fn sections(&self) -> &Sections
pub fn sections_mut(&mut self) -> &mut Sections
pub fn code(&self) -> &[u8] ⓘ
pub fn base_address(&self) -> u32
pub fn end_address(&self) -> u32
pub fn get_function(&self, addr: u32) -> Option<&Function>
pub fn bss_size(&self) -> u32
pub fn name(&self) -> &str
pub fn kind(&self) -> ModuleKind
pub fn signed(&self) -> bool
Auto Trait Implementations§
impl<'a> Freeze for Module<'a>
impl<'a> RefUnwindSafe for Module<'a>
impl<'a> Send for Module<'a>
impl<'a> Sync for Module<'a>
impl<'a> Unpin for Module<'a>
impl<'a> UnwindSafe for Module<'a>
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