Skip to main content

expect_fourcc

Function expect_fourcc 

Source
pub fn expect_fourcc(actual: [u8; 4], expected: [u8; 4]) -> Result<(), [u8; 4]>
Expand description

Validates that a parsed fourcc exactly matches expected.

ยงErrors

Err(actual) on a mismatch, so callers can map it into a format-specific error variant without re-reading the source bytes.