pub fn vec_u64(bits: &Bits) -> Vec<u64>Expand description
Converts a bit string to a vector of 64 bit unsigned integers.
If the length of the the bit string is not divisible by 64 it is sign-extended to the next length that is, then it is converted.
ยงExample
let bits = Bits::new([0x10, 0x32, 0x54, 0x76]);
let ulongs = bits_as::vec_u64(&bits);
assert_eq!(ulongs.len(), 1);
assert_eq!(ulongs, vec![0x0000000076543210]);
let bits = Bits::from([0x10, 0x32, 0x54, 0x76]);
let ulongs = bits_as::vec_u64(&bits);
assert_eq!(ulongs.len(), 1);
assert_eq!(ulongs, vec![0x0000000076543210]);