pub fn from_bytes(buffer: &[u8]) -> Result<Uvar, UvarError> {
        if buffer.len() > MAXBYTES {
            return Err(UvarError::Overflow);
        }

        let (n, _) = Uvar::take(buffer)?;

        Ok(n)
    }
/// Transforms a byte list into a uvar.
Transforms a byte list into a uvar.
Transforms a byte list into a uvar .
pub fn from_bytes(buffer: &[u8]) -> Result<Uvar, UvarError> {
        if buffer.len() > MAXBYTES {
            return Err(UvarError::Overflow);
        }
        let (n, _) = Uvar::take(buffer)?;
        Ok(n)
    }
pub fn from_bytes ( buffer : & [ u8 ] ) -> Result < Uvar , UvarError > { if buffer . len ( ) > MAXBYTES { return Err ( UvarError :: Overflow ) ; } let ( n , _ ) = Uvar :: take ( buffer ) ? ; Ok ( n ) }
Transforms a byte list into a uvar.
Transforms a byte list into a uvar .
buffer
&[u8]
buffer
&[u8]