Home
last modified time | relevance | path

Searched refs:length_data (Results 1 – 7 of 7) sorted by relevance

/external/rust/crates/nom/tests/
Doverflow.rs50 named!(multi<&[u8], Vec<&[u8]> >, many0!( length_data!(be_u64) ) ); in overflow_incomplete_length_bytes()
62 named!(multi<&[u8], Vec<&[u8]> >, many0!( length_data!(be_u64) ) ); in overflow_incomplete_many0()
74 named!(multi<&[u8], Vec<&[u8]> >, many1!( length_data!(be_u64) ) ); in overflow_incomplete_many1()
86 named!(multi<&[u8], (Vec<&[u8]>, &[u8]) >, many_till!( length_data!(be_u64), tag!("abc") ) ); in overflow_incomplete_many_till()
98 named!(multi<&[u8], Vec<&[u8]> >, many_m_n!(2, 4, length_data!(be_u64) ) ); in overflow_incomplete_many_m_n()
110 named!(counter<&[u8], Vec<&[u8]> >, count!( length_data!(be_u64), 2 ) ); in overflow_incomplete_count()
122 named!(multi<&[u8], Vec<&[u8]> >, length_count!( be_u8, length_data!(be_u64) ) ); in overflow_incomplete_length_count()
133 named!(multi<&[u8], Vec<&[u8]> >, many0!( length_data!(be_u64) ) ); in overflow_incomplete_length_data()
Dissues.rs108 let _: IResult<&[u8], &[u8], (&[u8], ErrorKind)> = length_data!(b"012346", be_u16); in usize_length_bytes_issue()
/external/ukey2/src/main/cpp/src/securegcm/
Dukey2_shell.cc79 uint8_t length_data[sizeof(uint32_t)]; in ReadFrame() local
80 CHECK_EQ(sizeof(uint32_t), fread(&length_data, 1, sizeof(uint32_t), stdin)); in ReadFrame()
83 length |= static_cast<uint32_t>(length_data[0]) << (3 * 8); in ReadFrame()
84 length |= static_cast<uint32_t>(length_data[1]) << (2 * 8); in ReadFrame()
85 length |= static_cast<uint32_t>(length_data[2]) << (1 * 8); in ReadFrame()
86 length |= static_cast<uint32_t>(length_data[3]) << (0 * 8); in ReadFrame()
/external/rust/crates/nom/src/multi/
Dmacros.rs375 macro_rules! length_data( macro
377 $crate::multi::length_data(|i| $submac!(i, $($args)*))($i)
381 $crate::multi::length_data($f)($i)
847 fn length_data() { in length_data() function
848 named!( take<&[u8], &[u8]>, length_data!(number) ); in length_data()
Dmod.rs917 pub fn length_data<I, N, E, F>(f: F) -> impl Fn(I) -> IResult<I, I, E> in length_data() function
/external/rust/crates/nom/src/bytes/
Dmacros.rs897 named!(x, length_data!(le_u8));
903 named!(y, do_parse!(tag!("magic") >> b: length_data!(le_u8) >> (b)));
/external/rust/crates/nom/
DCHANGELOG.md127 - `sized_buffer` and `length_bytes!`: they can be replaced with the `length_data` function
371 - `length_bytes` is now an alias for `length_data`
580 - `length_data!` parses a length, and returns a subslice of that length