pub struct Parser<'a> { /* private fields */ }Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
Sourcepub fn new(replay: &'a [u8]) -> Result<Self, ParserError>
pub fn new(replay: &'a [u8]) -> Result<Self, ParserError>
Creates a new instance of parser and performs validation of a replay file.
pub fn context(&self) -> &Context
pub fn replay_info(&self) -> &CDemoFileInfo
Trait Implementations§
Source§impl DemoRunner for Parser<'_>
impl DemoRunner for Parser<'_>
Source§fn run_to_end(&mut self) -> Result<(), ParserError>
fn run_to_end(&mut self) -> Result<(), ParserError>
Moves to the end of replay. The last packet is
CDemoFileInfo.Source§fn run_to_tick(&mut self, target_tick: u32) -> Result<(), ParserError>
fn run_to_tick(&mut self, target_tick: u32) -> Result<(), ParserError>
Moves to target tick.
Source§fn jump_to_tick(&mut self, target_tick: u32) -> Result<(), ParserError>
fn jump_to_tick(&mut self, target_tick: u32) -> Result<(), ParserError>
Moves to target tick without calling observers and processing delta
packets.