Home
last modified time | relevance | path

Searched refs:le_u24 (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/nom/src/number/
Dstreaming.rs361 pub fn le_u24<'a, E: ParseError<&'a [u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u32, E> { in le_u24() function
523 map!(i, le_u24, |x| if x & 0x80_00_00 != 0 { in le_i24()
1033 assert_parse!(le_u24(&[0x00, 0x00, 0x00]), Ok((&b""[..], 0))); in le_u24_tests()
1034 assert_parse!(le_u24(&[0xFF, 0xFF, 0x00]), Ok((&b""[..], 65_535_u32))); in le_u24_tests()
1035 assert_parse!(le_u24(&[0x56, 0x34, 0x12]), Ok((&b""[..], 1_193_046_u32))); in le_u24_tests()
Dcomplete.rs371 pub fn le_u24<'a, E: ParseError<&'a [u8]>>(i: &'a[u8]) -> IResult<&'a[u8], u32, E> { in le_u24() function
530 map!(i, le_u24, |x| if x & 0x80_00_00 != 0 { in le_i24()
1024 assert_parse!(le_u24(&[0x00, 0x00, 0x00]), Ok((&b""[..], 0))); in le_u24_tests()
1025 assert_parse!(le_u24(&[0xFF, 0xFF, 0x00]), Ok((&b""[..], 65_535_u32))); in le_u24_tests()
1026 assert_parse!(le_u24(&[0x56, 0x34, 0x12]), Ok((&b""[..], 1_193_046_u32))); in le_u24_tests()