fn write_to<W: io::Write>(&self, buf: &mut W) -> Result<(), Error> {
        const PART : u32 = 0x7F;
        let mut val = self.0 as u32;
        loop {
            if (val & !PART) == 0 {
                buf.write_u8(val as u8)?;
                return Result::Ok(());
            }
            buf.write_u8(((val & PART) | 0x80) as u8)?;
            val >>= 7;
        }
    }
/// Encodes a `VarInt` into the Writer
Encodes a `VarInt` into the Writer
Encodes a ` VarInt ` into the Writer
fn write_to<W: io::Write>(&self, buf: &mut W) -> Result<(), Error> {
        const PART : u32 = 0x7F;
        let mut val = self.0 as u32;
        loop {
            if (val & !PART) == 0 {
                buf.write_u8(val as u8)?;
                return Result::Ok(());
            }
            buf.write_u8(((val & PART) | 0x80) as u8)?;
            val >>= 7;
        }
    }
fn write_to < W : io :: Write > ( & self , buf : & mut W ) -> Result < ( ) , Error > { const PART : u32 = 0x7F ; let mut val = self . 0 as u32 ; loop { if ( val & ! PART ) == 0 { buf . write_u8 ( val as u8 ) ? ; return Result :: Ok ( ( ) ) ; } buf . write_u8 ( ( ( val & PART ) | 0x80 ) as u8 ) ? ; val >>= 7 ; } }
Encodes a `VarInt` into the Writer
Encodes a ` VarInt ` into the Writer
&self
buf
&mut W