pub fn write_binary(&mut self, data: &[u8]) -> Result<(), Error<C::Error>> {
        data.iter().try_for_each(|b| match b {
            b'#' | b'$' | b'}' | b'*' => {
                self.write(b'}')?;
                self.write(*b ^ 0x20)
            }
            _ => self.write(*b),
        })
    }
/// Write data using the binary protocol.
Write data using the binary protocol.
Write data using the binary protocol .
pub fn write_binary(&mut self, data: &[u8]) -> Result<(), Error<C::Error>> {
        data.iter().try_for_each(|b| match b {
            b'#' | b'$' | b'}' | b'*' => {
                self.write(b'}')?;
                self.write(*b ^ 0x20)
            }
            _ => self.write(*b),
        })
    }
pub fn write_binary ( & mut self , data : & [ u8 ] ) -> Result < ( ) , Error < C :: Error > > { data . iter ( ) . try_for_each ( | b | match b { b'#' | b'$' | b'}' | b'*' => { self . write ( b'}' ) ? ; self . write ( * b ^ 0x20 ) } _ => self . write ( * b ) , } ) }
Write data using the binary protocol.
Write data using the binary protocol .
&mut self
data
&[u8]
&mut self
data
&[u8]