pub fn read_mpint(&mut self) -> Result<Vec<u8>> {
        let bytes = self.read_bytes()?;

        if bytes[0] == 0 {
            return Ok(bytes[1..].to_vec());
        }

        Ok(bytes)
    }
/// Reads an `mpint` value from the wrapped byte sequence.
///
/// Drops the leading byte if it's value is zero according to the RFC 4251, section 5.
///
/// # Example
/// ```rust
/// # use sshcerts::ssh::Reader;
/// let data = vec![0, 0, 0, 3, 1, 0, 1];
/// let mut reader = Reader::new(&data);
/// let mpint = reader.read_mpint().unwrap();
/// assert_eq!(mpint, [1, 0, 1]);
/// ```
Reads an `mpint` value from the wrapped byte sequence.
Drops the leading byte if it's value is zero according to the RFC 4251, section 5.
Reads an ` mpint ` value from the wrapped byte sequence . Drops the leading byte if it ' s value is zero according to the RFC 4251 section 5 .
pub fn read_mpint(&mut self) -> Result<Vec<u8>> {
        let bytes = self.read_bytes()?;
        if bytes[0] == 0 {
            return Ok(bytes[1..].to_vec());
        }
        Ok(bytes)
    }
pub fn read_mpint ( & mut self ) -> Result < Vec < u8 > > { let bytes = self . read_bytes ( ) ? ; if bytes [ 0 ] == 0 { return Ok ( bytes [ 1 .. ] . to_vec ( ) ) ; } Ok ( bytes ) }
Reads an `mpint` value from the wrapped byte sequence.
Reads an ` mpint ` value from the wrapped byte sequence .
&mut self
example
None
use sshcerts::ssh::reader;
None