Searched refs:le_i16 (Results 1 – 4 of 4) sorted by relevance
/external/rust/crates/nom/src/number/ |
D | streaming.rs | 500 pub fn le_i16<'a, E: ParseError<&'a [u8]>>(i: &'a[u8]) -> IResult<&'a[u8], i16, E> { in le_i16() function 1025 assert_parse!(le_i16(&[0x00, 0x00]), Ok((&b""[..], 0))); in le_i16_tests() 1026 assert_parse!(le_i16(&[0xff, 0x7f]), Ok((&b""[..], 32_767_i16))); in le_i16_tests() 1027 assert_parse!(le_i16(&[0xff, 0xff]), Ok((&b""[..], -1))); in le_i16_tests() 1028 assert_parse!(le_i16(&[0x00, 0x80]), Ok((&b""[..], -32_768_i16))); in le_i16_tests()
|
D | complete.rs | 508 pub fn le_i16<'a, E: ParseError<&'a [u8]>>(i: &'a[u8]) -> IResult<&'a[u8], i16, E> { in le_i16() function 1016 assert_parse!(le_i16(&[0x00, 0x00]), Ok((&b""[..], 0))); in le_i16_tests() 1017 assert_parse!(le_i16(&[0xff, 0x7f]), Ok((&b""[..], 32_767_i16))); in le_i16_tests() 1018 assert_parse!(le_i16(&[0xff, 0xff]), Ok((&b""[..], -1))); in le_i16_tests() 1019 assert_parse!(le_i16(&[0x00, 0x80]), Ok((&b""[..], -32_768_i16))); in le_i16_tests()
|
D | macros.rs | 117 … $e { $crate::number::streaming::be_i16($i) } else { $crate::number::streaming::le_i16($i) } } ););
|
/external/rust/crates/nom/ |
D | CHANGELOG.md | 960 - `le_i8`, `le_i16`, `le_i32`, `le_i64`: little endian signed integer parsers
|