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;
    }
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;
    }
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 ; }
Send ByteArray to output stream

@param  string|Zend_Amf_Value_ByteArray  $data
@return Zend_Amf_Parse_Amf3_Serializer
Send ByteArray to output stream