pub fn buf_to_array_ctr<F: Fn(&[u8; N]) -> V, V, const N: usize>( buf: &[u8], ctr: F, ) -> Option<(&[u8], V)>