pub fn uint64(bits: &Bits) -> u64Expand description
Converts up to the first 64 bits of a bit string to a 64 bit unsigned integer.
ยงExample
let bits = Bits::new([0x10, 0x32, 0x54, 0x76]);
let ulong = bits_as::uint64(&bits);
assert_eq!(ulong, 0x0000000076543210);
let bits = Bits::from([0x10, 0x32, 0x54, 0x76]);
let ulong = bits_as::uint64(&bits);
assert_eq!(ulong, 0x0000000076543210);