pub fn le_u64<'a, Input>() -> impl Parser<Input, Output = u64, PartialState = ()>
Expand description
Reads a u64 out of the byte stream with the specified endianess
use combine::Parser;
use combine::parser::byte::num::le_u64;
assert_eq!(le_u64().parse(&b"\x01\0\0\0\0\0\0\0"[..]), Ok((1, &b""[..])));
assert!(le_u64().parse(&b"\x01\0\0\0\0\0\0"[..]).is_err());