pub fn write_string_vec(&mut self, vec: &[String]) {
        let total_length = vec.iter().map(|x| x.len()).fold(vec.len()*4, |x, y| x + y) as u32;
        self.write_u32(total_length);

        for item in vec {
            self.write_string(item);
        }
    }
/// Writes a `Vec<String>` to the underlying byte sequence.
///
/// # Example
/// ```rust
/// # use sshcerts::ssh::Writer;
/// let mut writer = Writer::new();
/// 
/// writer.write_string_vec(&vec![String::from("Test"), String::from("Test")]);
/// let bytes = writer.into_bytes();
/// assert_eq!(bytes, [0, 0, 0, 16, 0, 0, 0, 4, 84, 101, 115, 116, 0, 0, 0, 4, 84, 101, 115, 116]);
/// ```
Writes a `Vec` to the underlying byte sequence.
Writes a ` Vec ` to the underlying byte sequence .
pub fn write_string_vec(&mut self, vec: &[String]) {
        let total_length = vec.iter().map(|x| x.len()).fold(vec.len()*4, |x, y| x + y) as u32;
        self.write_u32(total_length);
        for item in vec {
            self.write_string(item);
        }
    }
pub fn write_string_vec ( & mut self , vec : & [ String ] ) { let total_length = vec . iter ( ) . map ( | x | x . len ( ) ) . fold ( vec . len ( ) * 4 , | x , y | x + y ) as u32 ; self . write_u32 ( total_length ) ; for item in vec { self . write_string ( item ) ; } }
Writes a `Vec<String>` to the underlying byte sequence.
Writes a ` Vec<String > ` to the underlying byte sequence .
&mut self
vec
&[String]
example
None
use sshcerts::ssh::writer;
let mut writer = Writer::new().


let mut writer = Writer :: new () .