Function mzdata::io::infer_from_stream
source · pub fn infer_from_stream<R: Read + Seek>(
stream: &mut R
) -> Result<(MassSpectrometryFormat, bool)>
Expand description
Given a stream of bytes, infer the file format and whether or not the stream is GZIP compressed. This assumes the stream is seekable.