pub fn write_string(v: &str, buf: &mut impl BufMut) -> Result<(), ParseError>