[−][src]Function combine::parser::byte::num::le_f64
pub fn le_f64<'a, I>() -> F64<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, ByteOrder}; use combine::Parser; use combine::parser::byte::num::f64; let mut buf = [0; 8]; LE::write_f64(&mut buf, 123.45); assert_eq!(f64::<LE, _>().parse(&buf[..]), Ok((123.45, &b""[..]))); assert!(f64::<LE, _>().parse(&b"\x01\0\0\0\0\0\0"[..]).is_err());