pub fn restore_array<const N: usize>(buf: &[u8]) -> Result<([u8; N], &[u8])>
Restore a statically sized array from a buffer, returning the array and the remainder of the buffer.