[][src]Function bitcoin::util::misc::script_find_and_remove

pub fn script_find_and_remove(haystack: &mut Vec<u8>, needle: &[u8]) -> usize

Search for needle in the vector haystack and remove every instance of it, returning the number of instances removed. Loops through the vector opcode by opcode, skipping pushed data.