Searched refs:be_i16 (Results 1 – 4 of 4) sorted by relevance
/external/rust/crates/nom/src/number/ |
D | streaming.rs | 213 pub fn be_i16<'a, E: ParseError<&'a [u8]>>(i: &'a[u8]) -> IResult<&'a[u8], i16, E> { in be_i16() function 940 assert_parse!(be_i16(&[0x00, 0x00]), Ok((&b""[..], 0))); in i16_tests() 941 assert_parse!(be_i16(&[0x7f, 0xff]), Ok((&b""[..], 32_767_i16))); in i16_tests() 942 assert_parse!(be_i16(&[0xff, 0xff]), Ok((&b""[..], -1))); in i16_tests() 943 assert_parse!(be_i16(&[0x80, 0x00]), Ok((&b""[..], -32_768_i16))); in i16_tests()
|
D | complete.rs | 216 pub fn be_i16<'a, E: ParseError<&'a [u8]>>(i: &'a[u8]) -> IResult<&'a[u8], i16, E> { in be_i16() function 931 assert_parse!(be_i16(&[0x00, 0x00]), Ok((&b""[..], 0))); in i16_tests() 932 assert_parse!(be_i16(&[0x7f, 0xff]), Ok((&b""[..], 32_767_i16))); in i16_tests() 933 assert_parse!(be_i16(&[0xff, 0xff]), Ok((&b""[..], -1))); in i16_tests() 934 assert_parse!(be_i16(&[0x80, 0x00]), Ok((&b""[..], -32_768_i16))); in i16_tests()
|
D | macros.rs | 117 …( {if $crate::number::Endianness::Big == $e { $crate::number::streaming::be_i16($i) } else { $crat…
|
/external/rust/crates/nom/ |
D | CHANGELOG.md | 984 - `be_i8`, `be_i16`, `be_i32`, `be_i64`: big endian signed integer parsers
|