當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Io_Writer::writeString16方法代碼示例

本文整理匯總了PHP中Zend_Io_Writer::writeString16方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Io_Writer::writeString16方法的具體用法?PHP Zend_Io_Writer::writeString16怎麽用?PHP Zend_Io_Writer::writeString16使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Io_Writer的用法示例。


在下文中一共展示了Zend_Io_Writer::writeString16方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _writeData

 /**
  * Writes the frame raw data without the header.
  *
  * @param Zend_Io_Writer $writer The writer object.
  * @return void
  */
 protected function _writeData($writer)
 {
     $writer->writeUInt8($this->_encoding)->write($this->_currency)->writeString8($this->_price, 1)->write($this->_date)->writeString8($this->_contact, 1)->writeUInt8($this->_delivery);
     switch ($this->_encoding) {
         case self::UTF16LE:
             $writer->writeString16($this->_seller, Zend_Io_Writer::LITTLE_ENDIAN_ORDER, 1)->writeString16($this->_description, Zend_Io_Writer::LITTLE_ENDIAN_ORDER, 1);
             break;
         case self::UTF16:
             // break intentionally omitted
         // break intentionally omitted
         case self::UTF16BE:
             $writer->writeString16($this->_seller, null, 1)->writeString16($this->_description, null, 1);
             break;
         default:
             $writer->writeString8($this->_seller, 1)->writeString8($this->_description, 1);
             break;
     }
     if ($this->_mimeType) {
         $writer->writeString8($this->_mimeType, 1)->write($this->_imageData);
     }
 }
開發者ID:adam-fonseca,項目名稱:RuneUI,代碼行數:27,代碼來源:Comr.php

示例2: _writeData

 /**
  * Writes the frame raw data without the header.
  *
  * @param Zend_Io_Writer $writer The writer object.
  * @return void
  */
 protected function _writeData($writer)
 {
     $writer->writeUInt8($this->_encoding);
     switch ($this->_encoding) {
         case self::UTF16LE:
             $writer->writeString16($this->_description, Zend_Io_Writer::LITTLE_ENDIAN_ORDER, 1);
             break;
         case self::UTF16:
             // break intentionally omitted
         // break intentionally omitted
         case self::UTF16BE:
             $writer->writeString16($this->_description, null, 1);
             break;
         default:
             $writer->writeString8($this->_description, 1);
             break;
     }
     $writer->write($this->_link);
 }
開發者ID:jreinert,項目名稱:RuneUI,代碼行數:25,代碼來源:Wxxx.php

示例3: _writeData

 /**
  * Writes the frame raw data without the header.
  *
  * @param Zend_Io_Writer $writer The writer object.
  * @return void
  */
 protected function _writeData($writer)
 {
     $writer->writeUInt8($this->_encoding);
     switch ($this->_encoding) {
         case self::UTF16LE:
             $count = count($this->_text);
             for ($i = 0; $i < $count; $i++) {
                 $writer->writeString16($this->_text, Zend_Io_Writer::LITTLE_ENDIAN_ORDER, $i == $count ? null : 1);
             }
             break;
         case self::UTF16:
             // break intentionally omitted
         // break intentionally omitted
         case self::UTF16BE:
             $writer->write(implode("", $this->_text));
             break;
         default:
             $writer->write(implode("", $this->_text));
             break;
     }
 }
開發者ID:google-code-backups,項目名稱:php-reader,代碼行數:27,代碼來源:TextFrame.php

示例4: _writeData

 /**
  * Writes the frame raw data without the header.
  *
  * @param Zend_Io_Writer $writer The writer object.
  * @return void
  */
 protected function _writeData($writer)
 {
     $writer->writeUInt8($this->_encoding)->write($this->_currency)->writeString8($this->_price, 1)->write($this->_date);
     switch ($this->_encoding) {
         case self::UTF16LE:
             $writer->writeString16($this->_seller, Zend_Io_Writer::LITTLE_ENDIAN_ORDER);
             break;
         case self::UTF16:
             // break intentionally omitted
         // break intentionally omitted
         case self::UTF16BE:
             $writer->writeString16($this->_seller);
             break;
         default:
             $writer->writeString8($this->_seller);
             break;
     }
 }
開發者ID:lokamaya,項目名稱:zend-mp3,代碼行數:24,代碼來源:Owne.php

示例5: _writeData

 /**
  * Writes the frame raw data without the header.
  *
  * @param Zend_Io_Writer $writer The writer object.
  * @return void
  */
 protected function _writeData($writer)
 {
     $writer->writeUInt8($this->_encoding);
     foreach ($this->_people as $entry) {
         foreach ($entry as $key => $val) {
             switch ($this->_encoding) {
                 case self::UTF16LE:
                     $writer->writeString16($key, Zend_Io_Writer::LITTLE_ENDIAN_ORDER, 1)->writeString16($val, Zend_Io_Writer::LITTLE_ENDIAN_ORDER, 1);
                     break;
                 case self::UTF16:
                     // break intentionally omitted
                 // break intentionally omitted
                 case self::UTF16BE:
                     $writer->writeString16($key, null, 1)->writeString16($val, null, 1);
                     break;
                 default:
                     $writer->writeString8($key, 1)->writeString8($val, 1);
                     break;
             }
         }
     }
 }
開發者ID:hjoelr,項目名稱:com_mediasyndicator,代碼行數:28,代碼來源:Ipls.php

示例6: _writeData

 /**
  * Writes the frame raw data without the header.
  *
  * @param Zend_Io_Writer $writer The writer object.
  * @return void
  */
 protected function _writeData($writer)
 {
     $writer->writeUInt8($this->_encoding)->write($this->_language);
     switch ($this->_encoding) {
         case self::UTF16LE:
             $writer->writeString16($this->_text, Zend_Io_Writer::LITTLE_ENDIAN_ORDER);
             break;
         case self::UTF16:
             // break intentionally omitted
         // break intentionally omitted
         case self::UTF16BE:
             // break intentionally omitted
         // break intentionally omitted
         default:
             $writer->write($this->_text);
             break;
     }
 }
開發者ID:google-code-backups,項目名稱:php-reader,代碼行數:24,代碼來源:LanguageTextFrame.php

示例7: _writeData

 /**
  * Writes the frame raw data without the header.
  *
  * @param Zend_Io_Writer $writer The writer object.
  * @return void
  */
 protected function _writeData($writer)
 {
     $writer->writeUInt8($this->_encoding)->write($this->_language)->writeUInt8($this->_format)->writeUInt8($this->_type);
     switch ($this->_encoding) {
         case self::UTF16LE:
             $writer->writeString16($this->_description, Zend_Io_Writer::LITTLE_ENDIAN_ORDER, 1);
             break;
         case self::UTF16:
             // break intentionally omitted
         // break intentionally omitted
         case self::UTF16BE:
             $writer->writeString16($this->_description, null, 1);
             break;
         default:
             $writer->writeString8($this->_description, 1);
             break;
     }
     foreach ($this->_events as $timestamp => $syllable) {
         switch ($this->_encoding) {
             case self::UTF16LE:
                 $writer->writeString16($syllable, Zend_Io_Writer::LITTLE_ENDIAN_ORDER, 1);
                 break;
             case self::UTF16:
                 // break intentionally omitted
             // break intentionally omitted
             case self::UTF16BE:
                 $writer->writeString16($syllable, null, 1);
                 break;
             default:
                 $writer->writeString8($syllable, 1);
                 break;
         }
         $writer->writeUInt32BE($timestamp);
     }
 }
開發者ID:google-code-backups,項目名稱:php-reader,代碼行數:41,代碼來源:Sylt.php


注:本文中的Zend_Io_Writer::writeString16方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。