original_string: public function writeByteArray(&$data)
      {
          if ($this->writeObjectReference($data)) {
              return $this;
          }
  
          if (is_string($data)) {
              //nothing to do
          } else if ($data instanceof Zend_Amf_Value_ByteArray) {
              $data = $data->getData();
          } else {
              require_once 'Zend/Amf/Exception.php';
              throw new Zend_Amf_Exception('Invalid ByteArray specified; must be a string or Zend_Amf_Value_ByteArray');
          }
  
          $this->writeBinaryString($data);
  
          return $this;
      }
code: public function writeByteArray(&$data)
      {
          if ($this->writeObjectReference($data)) {
              return $this;
          }
  
          if (is_string($data)) {
              //nothing to do
          } else if ($data instanceof Zend_Amf_Value_ByteArray) {
              $data = $data->getData();
          } else {
              require_once 'Zend/Amf/Exception.php';
              throw new Zend_Amf_Exception('Invalid ByteArray specified; must be a string or Zend_Amf_Value_ByteArray');
          }
  
          $this->writeBinaryString($data);
  
          return $this;
      }
code_tokens: public function writeByteArray ( & $ data ) { if ( $ this -> writeObjectReference ( $ data ) ) { return $ this ; } if ( is_string ( $ data ) ) { //nothing to do } else if ( $ data instanceof Zend_Amf_Value_ByteArray ) { $ data = $ data -> getData ( ) ; } else { require_once 'Zend/Amf/Exception.php' ; throw new Zend_Amf_Exception ( 'Invalid ByteArray specified; must be a string or Zend_Amf_Value_ByteArray' ) ; } $ this -> writeBinaryString ( $ data ) ; return $ this ; }
docstring: Send ByteArray to output stream
  
  @param  string|Zend_Amf_Value_ByteArray  $data
  @return Zend_Amf_Parse_Amf3_Serializer
docstring_tokens: Send ByteArray to output stream