pub fn vlu_decode(&mut self, bits: i32) -> u64 {
        // first group of 6 bits
        let mut b = self.byte();
        let mut value = (b & 0x7f) as u64;
        let mut s = 7;

        // while continuation bit is set
        while (b & 0x80) != 0 {
            if s >= bits {
                panic("integer representation too long");
            }

            // next group of 7 bits
            b = self.byte();
            value |= ((b & 0x7f) as u64) << s;
            s += 7;
        }

        value
    }
// vlu (variable length unsigned) decoder
vlu (variable length unsigned) decoder
vlu ( variable length unsigned ) decoder
pub fn vlu_decode(&mut self, bits: i32) -> u64 {
        // first group of 6 bits
        let mut b = self.byte();
        let mut value = (b & 0x7f) as u64;
        let mut s = 7;
        // while continuation bit is set
        while (b & 0x80) != 0 {
            if s >= bits {
                panic("integer representation too long");
            }
            // next group of 7 bits
            b = self.byte();
            value |= ((b & 0x7f) as u64) << s;
            s += 7;
        }
        value
    }
pub fn vlu_decode ( & mut self , bits : i32 ) -> u64 { // first group of 6 bits let mut b = self . byte ( ) ; let mut value = ( b & 0x7f ) as u64 ; let mut s = 7 ; // while continuation bit is set while ( b & 0x80 ) != 0 { if s >= bits { panic ( " " ) ; } // next group of 7 bits b = self . byte ( ) ; value |= ( ( b & 0x7f ) as u64 ) << s ; s += 7 ; } value }
vlu (variable length unsigned) decoder
vlu ( variable length unsigned ) decoder
&mut self
bits
i32