pub struct GlulxState {
pub debug_function_data: Option<BTreeMap<u32, DebugFunctionData>>,
pub functions: BTreeMap<u32, Function>,
pub ramstart: u32,
pub safe_function_overides: Option<Vec<u32>>,
pub stop_on_string: bool,
pub unsafe_function_overides: Option<Vec<u32>>,
}
Fields§
§debug_function_data: Option<BTreeMap<u32, DebugFunctionData>>
§functions: BTreeMap<u32, Function>
§ramstart: u32
§safe_function_overides: Option<Vec<u32>>
§stop_on_string: bool
§unsafe_function_overides: Option<Vec<u32>>
Implementations§
Source§impl GlulxState
impl GlulxState
pub fn disassemble(&mut self, image: &[u8]) -> FnvHashSet<(u32, u32)>
pub fn parse_string_decoding_table( &self, image: &[u8], ) -> FnvHashMap<u32, DecodingNode>
Source§impl GlulxState
impl GlulxState
pub fn new( debug_function_data: Option<BTreeMap<u32, DebugFunctionData>>, safe_function_overides: Option<Vec<u32>>, stop_on_string: bool, unsafe_function_overides: Option<Vec<u32>>, ) -> Self
pub fn decompile_rom(&mut self, image: &[u8])
pub fn read_addr(&self, image: &[u8], addr: u32) -> u32
Trait Implementations§
Source§impl VirtualMachine for GlulxState
impl VirtualMachine for GlulxState
fn get_functions(&self) -> FnvHashMap<u32, FunctionSafety>
fn mark_function_as_unsafe(&mut self, addr: u32)
fn mark_all_unsafe_functions(&mut self, edges: FnvHashSet<(u32, u32)>)
Auto Trait Implementations§
impl Freeze for GlulxState
impl RefUnwindSafe for GlulxState
impl Send for GlulxState
impl Sync for GlulxState
impl Unpin for GlulxState
impl UnwindSafe for GlulxState
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