[][src]Function tfrecord::io::blocking::try_read_record

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

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).