pub(crate) fn check_version(reader: &mut impl Read) -> Result<()>
Expand description
Check if the reader contains version number that is understood.
ยงErrors
Returns:
- Error::BadVersion if an unrecognized version value is found.
- Error::Io if an I/O error occurs.