pub fn write_string<W: Writer>(input: &str, writer: &mut W) -> Result<(), ::std::io::Error> {
    let len = BigSize(input.len() as u64);
    len.write(writer)?;
    let bytes = input.as_bytes();

    for b in bytes {
        b.write(writer)?;
    }

    Ok(())
}
/// Writes a given string to the given writer, prefixing the string length as
/// a BigSize value.
Writes a given string to the given writer, prefixing the string length as
a BigSize value.
Writes a given string to the given writer prefixing the string length as a BigSize value .
pub fn write_string<W: Writer>(input: &str, writer: &mut W) -> Result<(), ::std::io::Error> {
    let len = BigSize(input.len() as u64);
    len.write(writer)?;
    let bytes = input.as_bytes();
    for b in bytes {
        b.write(writer)?;
    }
    Ok(())
}
pub fn write_string < W : Writer > ( input : & str , writer : & mut W ) -> Result < ( ) , :: std :: io :: Error > { let len = BigSize ( input . len ( ) as u64 ) ; len . write ( writer ) ? ; let bytes = input . as_bytes ( ) ; for b in bytes { b . write ( writer ) ? ; } Ok ( ( ) ) }
Writes a given string to the given writer, prefixing the string length as
a BigSize value.
Writes a given string to the given writer prefixing the string length as a BigSize value .
input
&str
writer
&mut W