pub fn read_ue(&mut self) -> io::Result<u32> {
        let mut cnt = 0u32;
        while self.read_bit()? == false {
            cnt += 1;
        }
        if cnt == 0 {
            return Ok(0);
        }
        if cnt > 8 {
            return Err(io::ErrorKind::InvalidData.into());
        }
        let val = self.read_bits(cnt as u8)?;
        let res = (1u32 << cnt) - 1 + val;
        Ok(res)
    }
/// Read unsigned exp-golomb code
Read unsigned exp-golomb code
Read unsigned exp - golomb code
pub fn read_ue(&mut self) -> io::Result<u32> {
        let mut cnt = 0u32;
        while self.read_bit()? == false {
            cnt += 1;
        }
        if cnt == 0 {
            return Ok(0);
        }
        if cnt > 8 {
            return Err(io::ErrorKind::InvalidData.into());
        }
        let val = self.read_bits(cnt as u8)?;
        let res = (1u32 << cnt) - 1 + val;
        Ok(res)
    }
pub fn read_ue ( & mut self ) -> io :: Result < u32 > { let mut cnt = 0u32 ; while self . read_bit ( ) ? == false { cnt += 1 ; } if cnt == 0 { return Ok ( 0 ) ; } if cnt > 8 { return Err ( io :: ErrorKind :: InvalidData . into ( ) ) ; } let val = self . read_bits ( cnt as u8 ) ? ; let res = ( 1u32 << cnt ) - 1 + val ; Ok ( res ) }
Read unsigned exp-golomb code
Read unsigned exp - golomb code
&mut self
&mut self