pub(crate) async fn assert_delimiter<R: AsyncRead + Unpin>(reader: &mut R, expected: u32) -> Result<()> {
    match reader.read_u32_le().await? {
        actual if actual == expected => Ok(()),
        actual => Err(ZipError::UnexpectedHeaderError(actual, expected)),
    }
}
/// Assert that the next four-byte delimiter read by a reader which impls AsyncRead matches the expected delimiter.
Assert that the next four-byte delimiter read by a reader which impls AsyncRead matches the expected delimiter.
Assert that the next four - byte delimiter read by a reader which impls AsyncRead matches the expected delimiter .
pub(crate) async fn assert_delimiter<R: AsyncRead + Unpin>(reader: &mut R, expected: u32) -> Result<()> {
    match reader.read_u32_le().await? {
        actual if actual == expected => Ok(()),
        actual => Err(ZipError::UnexpectedHeaderError(actual, expected)),
    }
}
pub ( crate ) async fn assert_delimiter < R : AsyncRead + Unpin > ( reader : & mut R , expected : u32 ) -> Result < ( ) > { match reader . read_u32_le ( ) . await ? { actual if actual == expected => Ok ( ( ) ) , actual => Err ( ZipError :: UnexpectedHeaderError ( actual , expected ) ) , } }
Assert that the next four-byte delimiter read by a reader which impls AsyncRead matches the expected delimiter.
Assert that the next four - byte delimiter read by a reader which impls AsyncRead matches the expected delimiter .
reader
&mut R
expected
u32
reader
&mut R
expected
u32