mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
273 B
Rust
13 lines
273 B
Rust
6 years ago
|
#[macro_export]
|
||
|
macro_rules! take_until_and_consume (
|
||
|
( $i:expr, $needle:expr ) => (
|
||
|
{
|
||
|
let input: &[u8] = $i;
|
||
|
|
||
|
let (rem, res) = ::nom::take_until!(input, $needle)?;
|
||
|
let (rem, _) = ::nom::take!(rem, $needle.len())?;
|
||
|
Ok((rem, res))
|
||
|
}
|
||
|
);
|
||
|
);
|