Function t2plugin::output_nums

source ·
pub fn output_nums<T: Product + Div>(vals: &[T])
Expand description

Appends a list of numbers (integers or floats) to Tranalyzer2 output buffer.

This function can be called in the T2Plugin::on_flow_terminate method to append a repetitive number field to the output flow file.


struct HttpPlugin {
    status_codes: Vec<u16>,

impl T2Plugin for HttpPlugin {
    fn on_flow_terminate(&mut self, flow: &mut Flow) {
        // output flow HTTP status codes in a repetitive bt_uint_16 column.