Lines Matching defs:be_i64
303 /// use nom::number::streaming::be_i64;
305 /// let parser = be_i64::<_, (_, ErrorKind)>;
311 pub fn be_i64<I, E: ParseError<I>>(input: I) -> IResult<I, i64, E>
1052 /// let be_i64 = |s| {
1056 /// assert_eq!(be_i64(&b"\x00\x01\x02\x03\x04\x05\x06\x07abcefg"[..]), Ok((&b"abcefg"[..], 0x0001020304050607)));
1057 /// assert_eq!(be_i64(&b"\x01"[..]), Err(Err::Incomplete(Needed::new(7))));
1072 crate::number::Endianness::Big => be_i64,
1075 crate::number::Endianness::Native => be_i64,
1712 be_i64(&[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00][..]),
1716 be_i64(&[0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff][..]),
1720 be_i64(&[0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff][..]),
1724 be_i64(&[0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00][..]),
1727 assert_parse!(be_i64(&[][..]), Err(Err::Incomplete(Needed::new(8))));
1728 assert_parse!(be_i64(&[0x00][..]), Err(Err::Incomplete(Needed::new(7))));
1730 be_i64(&[0x00, 0x00][..]),
1734 be_i64(&[0x00, 0x00, 0x00][..]),
1738 be_i64(&[0x00, 0x00, 0x00, 0x00][..]),
1742 be_i64(&[0x00, 0x00, 0x00, 0x00, 0x00][..]),
1746 be_i64(&[0x00, 0x00, 0x00, 0x00, 0x00, 0x00][..]),
1750 be_i64(&[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00][..]),