Function t2plugin::output_num
source · pub fn output_num<T: Product + Div>(val: T)
Expand description
Appends a number (integer or float) to Tranalyzer2 output buffer.
This function can be called in the T2Plugin::on_flow_terminate
method to append a number to
the output flow file.
Example
impl T2Plugin for ExamplePlugin {
...
#[allow(unused_variables)]
fn on_flow_terminate(&mut self, flow: &mut Flow) {
// output the flow index in a bt_uint_64 column
output_num(flow.findex);
}
}