pub fn try_read_record<R>(reader: &mut R, check_integrity: bool) -> Result<Option<Vec<u8>>>
where
    R: Read,
{
    let len = match try_read_len(reader, check_integrity)? {
        Some(len) => len,
        None => return Ok(None),
    };
    let data = try_read_record_data(reader, len, check_integrity)?;
    Ok(Some(data))
}
/// 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)`.
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)`.
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 ) ` .
pub fn try_read_record<R>(reader: &mut R, check_integrity: bool) -> Result<Option<Vec<u8>>>
where
    R: Read,
{
    let len = match try_read_len(reader, check_integrity)? {
        Some(len) => len,
        None => return Ok(None),
    };
    let data = try_read_record_data(reader, len, check_integrity)?;
    Ok(Some(data))
}
pub fn try_read_record < R > ( reader : & mut R , check_integrity : bool ) -> Result < Option < Vec < u8 > > > where R : Read , { let len = match try_read_len ( reader , check_integrity ) ? { Some ( len ) => len , None => return Ok ( None ) , } ; let data = try_read_record_data ( reader , len , check_integrity ) ? ; Ok ( Some ( data ) ) }
Try to extract raw bytes of a record from a generic reader.
Try to extract raw bytes of a record from a generic reader .
reader
&mut R
check_integrity
bool
reader
&mut R
check_integrity
bool