pub fn flush_bit(&mut self) {
        if self.rbit > 0 {
            self.rpos += 1;
            self.rbit = 0
        }

        if self.wbit > 0 {
            self.wpos += 1;
            self.wbit = 0
        }
    }
/// Discard all the pending bits available for reading or writing and place the the corresponding cursor to the next byte.
///
/// **Note 1** : If no bits are currently read or written, this function does nothing.
/// **Note 2** : This function is automatically called for each write or read operations.
/// #Example
///
/// ```text
/// 10010010 | 00000001
/// ^
/// 10010010 | 00000001 // read_bit called
///  ^
/// 10010010 | 00000001 // flush_bit() called
///            ^
/// ```
Discard all the pending bits available for reading or writing and place the the corresponding cursor to the next byte.
Note 1** : If no bits are currently read or written, this function does nothing.
Note 2** : This function is automatically called for each write or read operations.
Discard all the pending bits available for reading or writing and place the the corresponding cursor to the next byte . Note 1 ** : If no bits are currently read or written this function does nothing . Note 2 ** : This function is automatically called for each write or read operations .
pub fn flush_bit(&mut self) {
        if self.rbit > 0 {
            self.rpos += 1;
            self.rbit = 0
        }
        if self.wbit > 0 {
            self.wpos += 1;
            self.wbit = 0
        }
    }
pub fn flush_bit ( & mut self ) { if self . rbit > 0 { self . rpos += 1 ; self . rbit = 0 } if self . wbit > 0 { self . wpos += 1 ; self . wbit = 0 } }
Discard all the pending bits available for reading or writing and place the the corresponding cursor to the next byte.
Discard all the pending bits available for reading or writing and place the the corresponding cursor to the next byte .
&mut self
example
None