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.


impl T2Plugin for ExamplePlugin {
    fn on_flow_terminate(&mut self, flow: &mut Flow) {
        // output the flow index in a bt_uint_64 column