pub fn read_string(&mut self) -> Result<String> {
        let bytes = self.read_bytes()?;
        let result = String::from_utf8(bytes)?;

        Ok(result)
    }
/// Reads a `string` value from the wrapped byte sequence and
/// returns it as a `String`. The value that we read should be a valid UTF-8.
///
/// # Example
/// ```rust
/// # use sshcerts::ssh::Reader;
/// let data = vec![0, 0, 0, 13, 97, 32, 116, 101, 115, 116, 32, 115, 116, 114, 105, 110, 103];
/// let mut reader = Reader::new(&data);
/// let result = reader.read_string().unwrap();
/// assert_eq!(result, "a test string");
/// ```
Reads a `string` value from the wrapped byte sequence and
returns it as a `String`. The value that we read should be a valid UTF-8.
Reads a ` string ` value from the wrapped byte sequence and returns it as a ` String ` . The value that we read should be a valid UTF - 8 .
pub fn read_string(&mut self) -> Result<String> {
        let bytes = self.read_bytes()?;
        let result = String::from_utf8(bytes)?;
        Ok(result)
    }
pub fn read_string ( & mut self ) -> Result < String > { let bytes = self . read_bytes ( ) ? ; let result = String :: from_utf8 ( bytes ) ? ; Ok ( result ) }
Reads a `string` value from the wrapped byte sequence and
returns it as a `String`.
Reads a ` string ` value from the wrapped byte sequence and returns it as a ` String ` .
&mut self
example
None
use sshcerts::ssh::reader;
None