pub fn read_smart(&mut self) -> u16 {
        if self.data[self.rpos] >= 128 {
            return self.read_u16().wrapping_sub(32768);
        }
        else {
            return self.read_u8() as u16;
        }
    }
/// Reads a smart from the buffer, which is a dynamically-sized unit with a max value of 32768.
Reads a smart from the buffer, which is a dynamically-sized unit with a max value of 32768.
Reads a smart from the buffer which is a dynamically - sized unit with a max value of 32768 .
pub fn read_smart(&mut self) -> u16 {
        if self.data[self.rpos] >= 128 {
            return self.read_u16().wrapping_sub(32768);
        }
        else {
            return self.read_u8() as u16;
        }
    }
pub fn read_smart ( & mut self ) -> u16 { if self . data [ self . rpos ] >= 128 { return self . read_u16 ( ) . wrapping_sub ( 32768 ) ; } else { return self . read_u8 ( ) as u16 ; } }
Reads a smart from the buffer, which is a dynamically-sized unit with a max value of 32768.
Reads a smart from the buffer which is a dynamically - sized unit with a max value of 32768 .
&mut self