pub fn read_u64_le(input: &[u8]) -> Option<u64>Expand description
Reads a little-endian u64 from a byte slice.
Returns None if the slice doesn’t have enough bytes.
§Examples
use steam_vdf_parser::binary::read_u64_le;
let data = [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08];
assert_eq!(read_u64_le(&data), Some(0x0807060504030201));
assert_eq!(read_u64_le(&[0x01, 0x02]), None);