(values: [u64; N])
| 37 | } |
| 38 | |
| 39 | fn words<const N: usize>(values: [u64; N]) -> Vec<u8> { |
| 40 | values.into_iter().flat_map(u64::to_be_bytes).collect() |
| 41 | } |
| 42 | |
| 43 | fn decode_words<const N: usize>(bytes: &[u8]) -> [u64; N] { |
| 44 | std::array::from_fn(|i| u64::from_be_bytes(bytes[i * 8..i * 8 + 8].try_into().unwrap())) |
no test coverage detected