pub fn write_smart(&mut self, val: u16){
        if val > 128 {
            self.write_u16(val.wrapping_add(32768));
        } else {
            self.write_u8(val as u8);
        }
    }
/// Writes a smart to the buffer, which is a dynamically-sized unit with a max value of 32768.
Writes a smart to the buffer, which is a dynamically-sized unit with a max value of 32768.
Writes a smart to the buffer which is a dynamically - sized unit with a max value of 32768 .
pub fn write_smart(&mut self, val: u16){
        if val > 128 {
            self.write_u16(val.wrapping_add(32768));
        } else {
            self.write_u8(val as u8);
        }
    }
pub fn write_smart ( & mut self , val : u16 ) { if val > 128 { self . write_u16 ( val . wrapping_add ( 32768 ) ) ; } else { self . write_u8 ( val as u8 ) ; } }
Writes a smart to the buffer, which is a dynamically-sized unit with a max value of 32768.
Writes a smart to the buffer which is a dynamically - sized unit with a max value of 32768 .
&mut self
val
u16