Function evtclib::process_stream
source · [−]pub fn process_stream<R: Read + Seek>(
input: R,
compression: Compression
) -> Result<Log, EvtcError>
Expand description
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)?;