[][src]Function evtclib::process_file

pub fn process_file<P: AsRef<Path>>(
    path: P,
    compression: Compression
) -> Result<Log, EvtcError>

Convenience function to process a given file directly.

This is a shorthand for opening the file and then using process_stream with it. This function automatically wraps the raw file in a buffered reader, to ensure the bext reading performance.

If you need more fine-grained control, consider using process_stream or raw::parse_file followed by process instead.

let log = evtclib::process_file("logfile.zevtc", Compression::Zip)?;