fn scan_block(&mut self, payload: &[u8]) {
        if let Err(err) = self.db_block.scan(
            payload,
            0,
            &self.scratch,
            Some(Self::on_match),
            Some(&self.match_count),
        ) {
            println!("ERROR: Unable to scan packet. Exiting. {}", err)
        }
    }
// Scan each packet (in the ordering given in the PCAP file)
// through Hyperscan using the block-mode interface.
Scan each packet (in the ordering given in the PCAP file)
through Hyperscan using the block-mode interface.
Scan each packet ( in the ordering given in the PCAP file ) through Hyperscan using the block - mode interface .
fn scan_block(&mut self, payload: &[u8]) {
        if let Err(err) = self.db_block.scan(
            payload,
            0,
            &self.scratch,
            Some(Self::on_match),
            Some(&self.match_count),
        ) {
            println!("ERROR: Unable to scan packet. Exiting. {}", err)
        }
    }
fn scan_block ( & mut self , payload : & [ u8 ] ) { if let Err ( err ) = self . db_block . scan ( payload , 0 , & self . scratch , Some ( Self :: on_match ) , Some ( & self . match_count ) , ) { println ! ( " " err ) } }
Scan each packet (in the ordering given in the PCAP file)
through Hyperscan using the block-mode interface.
Scan each packet ( in the ordering given in the PCAP file ) through Hyperscan using the block - mode interface .
&mut self
payload
&[u8]
&mut self
payload
&[u8]