Lines Matching full:take
19 /// use nom::bits::{bits, streaming::take};
25 /// bits::<_, _, Error<(&[u8], usize)>, _, _>(tuple((take(4usize), take(8usize))))(input)
30 /// let output = parse(input).expect("We take 1.5 bytes and the input is longer than 2 bytes");
68 /// use nom::bits::{bits, bytes, streaming::take};
76 /// take(4usize),
77 /// take(8usize),
116 use crate::bits::streaming::take;
121 /// Take the `bits` function and assert that remaining bytes are correctly returned, if the
126 // Take 3 bit slices with sizes [4, 8, 4]. in test_complete_byte_consumption_bits()
128 bits::<_, _, Error<(&[u8], usize)>, _, _>(tuple((take(4usize), take(8usize), take(4usize))))( in test_complete_byte_consumption_bits()
132 let output = result.expect("We take 2 bytes and the input is longer than 2 bytes"); in test_complete_byte_consumption_bits()
144 /// Take the `bits` function and assert that remaining bytes are correctly returned, if the
151 // Take bit slices with sizes [4, 8]. in test_partial_byte_consumption_bits()
153 bits::<_, _, Error<(&[u8], usize)>, _, _>(tuple((take(4usize), take(8usize))))(input); in test_partial_byte_consumption_bits()
155 let output = result.expect("We take 1.5 bytes and the input is longer than 2 bytes"); in test_partial_byte_consumption_bits()
171 // Take bit slices with sizes [4, 8]. in test_incomplete_bits()
173 bits::<_, _, Error<(&[u8], usize)>, _, _>(tuple((take(4usize), take(8usize))))(input); in test_incomplete_bits()