pub fn clear(&mut self) {
        self.buffer_a = [0; N];
        self.buffer_b = [0; N];
        self.active_index = 0;
        self.active_toggle = true;
        self.is_reserve_full = false;
    }
/// Clears the Pingpong buffer to return it back into its default state
Clears the Pingpong buffer to return it back into its default state
Clears the Pingpong buffer to return it back into its default state
pub fn clear(&mut self) {
        self.buffer_a = [0; N];
        self.buffer_b = [0; N];
        self.active_index = 0;
        self.active_toggle = true;
        self.is_reserve_full = false;
    }
pub fn clear ( & mut self ) { self . buffer_a = [ 0 ; N ] ; self . buffer_b = [ 0 ; N ] ; self . active_index = 0 ; self . active_toggle = true ; self . is_reserve_full = false ; }
Clears the Pingpong buffer to return it back into its default state
Clears the Pingpong buffer to return it back into its default state
&mut self
&mut self