1
588
pub fn check_rem(rem: &[u8], expected_len: usize) {
2
588
    if rem.len() != expected_len {
3
        let str = String::from_utf8(rem.to_vec()).unwrap();
4
        println!("rem: {str}");
5
588
    }
6
588
    assert_eq!(
7
588
        expected_len,
8
588
        rem.len(),
9
        "Remainder length should be {expected_len} but was {}",
10
        rem.len()
11
    );
12
588
}