pub struct V1Parser<'a> {
buf: MemReaderRef<'a>,
largest_code_address_pperand_encountered: usize,
stacks: Vec<StackItem>,
encoding: Encoding,
pub offset: usize,
pub strings: Vec<BGIString>,
}
Available on crate feature
bgi
only.Fields§
§buf: MemReaderRef<'a>
§largest_code_address_pperand_encountered: usize
§stacks: Vec<StackItem>
§encoding: Encoding
§offset: usize
§strings: Vec<BGIString>
Implementations§
Source§impl<'a> V1Parser<'a>
impl<'a> V1Parser<'a>
pub fn new(buf: MemReaderRef<'a>, encoding: Encoding) -> Result<Self>
fn read_code_address(&mut self) -> Result<()>
fn read_string_address(&mut self, typ: BGIStringType) -> Result<()>
fn skip_inline_string(&mut self) -> Result<()>
fn read_opers(&mut self, templ: &'static [Inst]) -> Result<()>
fn read_push_string_address_operand(&mut self) -> Result<()>
pub fn is_empty_string(&self, address: usize) -> Result<bool>
pub fn read_string_at_address(&mut self, address: usize) -> Result<String>
pub fn handle_user_function_call(&mut self) -> Result<()>
pub fn handle_ruby(&mut self) -> Result<()>
pub fn handle_message_old(&mut self) -> Result<()>
pub fn handle_message(&mut self) -> Result<()>
pub fn handle_choice_screen(&mut self) -> Result<()>
pub fn disassemble(&mut self) -> Result<()>
pub fn output_internal_strings(&mut self)
Auto Trait Implementations§
impl<'a> Freeze for V1Parser<'a>
impl<'a> RefUnwindSafe for V1Parser<'a>
impl<'a> Send for V1Parser<'a>
impl<'a> Sync for V1Parser<'a>
impl<'a> Unpin for V1Parser<'a>
impl<'a> UnwindSafe for V1Parser<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more