pub fn try_read_record<R>(
    reader: &mut R,
    check_integrity: bool
) -> Result<Option<Vec<u8>>> where
    R: Read
Expand description

Try to extract raw bytes of a record from a generic reader.

It reads the record length and data from a generic reader, and verifies the checksum if requested. If the end of file is reached, it returns Ok(None).