Skip to content

Latest commit

 

History

History

evtc_parse

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

evtc_parse

Parsing for ArcDPS EVTC logs.

Documentation can be found at zerthox.github.io/arcdps-rs/evtc_parse/.

Usage

[dependencies]
evtc_parse = { git = "https://github.com/zerthox/arcdps-rs" }

Use the parse_file function to easily parse a log from a file path.

match evtc_parse::parse_file("path/to/log.evtc") {
    Ok(log) => println!("Log for boss id {}", log.header.boss_id),
    Err(err) => eprintln!("Encountered error {}", err),
}

A log can also be parsed from any input implementing Read.

use evtc_parse::{Log, Parse};
use std::io;

fn parse_from_read(input: &mut impl io::Read) -> Log {
    Log::parse(input).expect("failed to parse")
}