[][src]Function evtclib::process_stream

pub fn process_stream<R: Read + Seek>(
    input: R,
    compression: Compression
) -> Result<Log, EvtcError>

Convenience function to process a given stream directly.

This is a shorthand for using raw::parse_file followed by process.

The Seek bound is needed for zip compressed archives. If you have a reader that does not support seeking, you can use raw::parse_file directly instead.

use std::io::Cursor;
use evtclib::Compression;
let data = Cursor::new(vec![]);
let log = evtclib::process_stream(data, Compression::None)?;