[−][src]Function combine::parser::byte::num::le_i64
pub fn le_i64<'a, I>() -> I64<LE, I> where
I: Stream<Item = u8>,
I::Error: ParseError<I::Item, I::Range, I::Position>,
Reads a i64 out of the byte stream with the specified endianess
use combine::byteorder::LE; use combine::Parser; use combine::parser::byte::num::i64; assert_eq!(i64::<LE, _>().parse(&b"\x01\0\0\0\0\0\0\0"[..]), Ok((1, &b""[..]))); assert!(i64::<LE, _>().parse(&b"\x01\0\0\0\0\0\0"[..]).is_err());