private function writeEncoded($bytes)
    {
        $encoded = preg_replace('/\r\n|\r|\n/', "\r\n", rtrim(convert_uuencode($bytes)));
        // removes ending '`' line
        $this->stream->write("\r\n" . rtrim(substr($encoded, 0, -1)));
    }
private function writeEncoded($bytes)
    {
        $encoded = preg_replace('/\r\n|\r|\n/', "\r\n", rtrim(convert_uuencode($bytes)));
        // removes ending '`' line
        $this->stream->write("\r\n" . rtrim(substr($encoded, 0, -1)));
    }
private function writeEncoded ( $ bytes ) { $ encoded = preg_replace ( '/\r\n|\r|\n/' , "\r\n" , rtrim ( convert_uuencode ( $ bytes ) ) ) ; // removes ending '`' line $ this -> stream -> write ( "\r\n" . rtrim ( substr ( $ encoded , 0 , - 1 ) ) ) ; }
Writes the passed bytes to the underlying stream after encoding them.

@param string $bytes
Writes the passed bytes to the underlying stream after encoding them .