pub fn write_bytes(&mut self, val: &[u8]) {
        let size = val.len() as u32;
        let mut buf = size.to_be_bytes().to_vec();
        self.inner.append(&mut buf);
        self.inner.extend_from_slice(&val);
    }
/// Writes a byte sequence to the underlying vector.
/// The value is represented as a the byte sequence length,
/// followed by the actual byte sequence.
///
/// # Example
/// ```rust
/// # use sshcerts::ssh::Writer;
/// let mut writer = Writer::new();
/// writer.write_bytes(&[0, 0, 0, 42]);
/// let bytes = writer.into_bytes();
/// assert_eq!(bytes, vec![0, 0, 0, 4, 0, 0, 0, 42]);
/// ```
Writes a byte sequence to the underlying vector.
The value is represented as a the byte sequence length,
followed by the actual byte sequence.
Writes a byte sequence to the underlying vector . The value is represented as a the byte sequence length followed by the actual byte sequence .
pub fn write_bytes(&mut self, val: &[u8]) {
        let size = val.len() as u32;
        let mut buf = size.to_be_bytes().to_vec();
        self.inner.append(&mut buf);
        self.inner.extend_from_slice(&val);
    }
pub fn write_bytes ( & mut self , val : & [ u8 ] ) { let size = val . len ( ) as u32 ; let mut buf = size . to_be_bytes ( ) . to_vec ( ) ; self . inner . append ( & mut buf ) ; self . inner . extend_from_slice ( & val ) ; }
Writes a byte sequence to the underlying vector.
Writes a byte sequence to the underlying vector .
&mut self
val
&[u8]
example
None
use sshcerts::ssh::writer;
None