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


PHP Transform::toInt8方法代碼示例

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


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

示例1: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
   $data = Transform::toInt8(16);
   foreach ($this->_adjustments as $frequency => $adjustment)
     $data .= Transform::toUInt16BE
       ($adjustment > 0 ? $frequency | 0x8000 : $frequency & ~0x8000) .
       Transform::toUInt16BE(abs($adjustment));
   $this->setData($data);
   return parent::__toString();
 }
開發者ID:rtdean93,項目名稱:therock,代碼行數:15,代碼來源:EQUA.php

示例2: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
   $data = Transform::toInt8($this->_interpolation) . $this->_device . "\0";
   foreach ($this->_adjustments as $frequency => $adjustment)
     $data .= Transform::toUInt16BE($frequency * 2) .
       Transform::toInt16BE($adjustment * 512);
   $this->setData($data);
   return parent::__toString();
 }
開發者ID:rtdean93,項目名稱:therock,代碼行數:14,代碼來源:EQU2.php

示例3: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $this->setData(Transform::toInt8($this->_format) . Transform::toUInt32($this->_position));
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:10,代碼來源:POSS.php

示例4: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $data = Transform::toInt8($this->_encoding) . $this->_price . "" . $this->_date . $this->_contact . "" . Transform::toInt8($this->_delivery);
     switch ($this->_encoding) {
         case self::UTF16:
             $data .= Transform::toString16($this->_seller) . "" . Transform::toString16($this->_description) . "";
             break;
         case self::UTF16BE:
             $data .= Transform::toString16BE($this->_seller) . "";
             Transform::toString16($this->_description) . "";
             break;
         case self::UTF16LE:
             $data .= Transform::toString16LE($this->_seller) . "";
             Transform::toString16($this->_description) . "";
             break;
         default:
             $data .= $this->_seller . "" . $this->_description . "";
     }
     parent::setData($data . ($this->_mimeType ? $this->_mimeType . "" . $this->_imageData : 0));
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:26,代碼來源:COMR.php

示例5: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     parent::setData($this->_owner . "" . Transform::toInt8($this->_method) . $this->_encryptionData);
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:10,代碼來源:ENCR.php

示例6: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $this->setData(Transform::toInt8($this->_group) . $this->_signature);
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:10,代碼來源:SIGN.php

示例7: __toString

 /**
  * Returns the header raw data.
  *
  * @return string
  */
 public function __toString()
 {
     /* ID3v2.3.0 ExtendedHeader */
     if (isset($this->_options["version"]) && $this->_options["version"] < 4) {
         return Transform::toUInt32BE($this->_size) . Transform::toUInt16BE($this->hasFlag(self::CRC32) ? 0x8000 : 0) . Transform::toUInt32BE($this->_padding) . ($this->hasFlag(self::CRC32) ? Transform::toUInt32BE($this->_crc) : "");
     } else {
         return Transform::toUInt32BE($this->encodeSynchsafe32($this->_size)) . Transform::toInt8(1) . Transform::toInt8($this->_flags) . ($this->hasFlag(self::UPDATE) ? "" : "") . ($this->hasFlag(self::CRC32) ? Transform::toInt8(5) . Transform::toInt8($this->_crc & 0xf0000000 >> 28 & 0xf) . Transform::toUInt32BE(encodeSynchsafe32($this->_crc)) : "") . ($this->hasFlag(self::RESTRICTED) ? Transform::toInt8(1) . Transform::toInt8($this->_restrictions) : "");
     }
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:14,代碼來源:ExtendedHeader.php

示例8: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $this->setData(Transform::toInt16BE($this->_reverbLeft) . Transform::toInt16BE($this->_reverbRight) . Transform::toInt8($this->_reverbBouncesLeft) . Transform::toInt8($this->_reverbBouncesRight) . Transform::toInt8($this->_reverbFeedbackLtoL) . Transform::toInt8($this->_reverbFeedbackLtoR) . Transform::toInt8($this->_reverbFeedbackRtoR) . Transform::toInt8($this->_reverbFeedbackRtoL) . Transform::toInt8($this->_premixLtoR) . Transform::toInt8($this->_premixRtoL));
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:10,代碼來源:RVRB.php

示例9: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $this->setData(substr(Transform::toInt32BE($this->_size) << 8, 0, 3) . Transform::toInt8($this->_flags) . Transform::toInt32BE($this->_offset));
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:10,代碼來源:RBUF.php

示例10: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $data = Transform::toInt8($this->_encoding) . $this->_mimeType . "" . Transform::toInt8($this->_imageType);
     switch ($this->_encoding) {
         case self::UTF16:
             $data .= Transform::toString16($this->_description) . "";
             break;
         case self::UTF16BE:
             $data .= Transform::toString16BE($this->_description) . "";
             break;
         case self::UTF16LE:
             $data .= Transform::toString16LE($this->_description) . "";
             break;
         default:
             $data .= $this->_description . "";
     }
     parent::setData($data . $this->_imageData);
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:24,代碼來源:APIC.php

示例11: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $data = Transform::toInt8($this->_encoding);
     switch ($this->_encoding) {
         case self::UTF16:
             $data .= Transform::toString16(implode("", $this->_text));
             break;
         case self::UTF16BE:
             $data .= Transform::toString16BE(implode("", $this->_text));
             break;
         case self::UTF16LE:
             $data .= Transform::toString16LE(implode("", $this->_text));
             break;
         default:
             $data .= implode("", $this->_text);
     }
     $this->setData($data);
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:24,代碼來源:AbstractText.php

示例12: __toString

 /**
  * Returns the box raw data.
  *
  * @return string
  */
 public function __toString($data = "")
 {
   switch ($this->getFlags()) {
   case self::INTEGER:
   case self::INTEGER_OLD_STYLE:
     $data = "";
     for ($i = 0;  $i < strlen($this->_value); $i++)
       $data .= Transform::toInt8($this->_value[$i]);
     break;
   case self::STRING:
   default:
     $data = $this->_value;
   }
   return parent::__toString("\0\0\0\0" . $data);
 }
開發者ID:rtdean93,項目名稱:therock,代碼行數:20,代碼來源:ILST.php

示例13: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $data = Transform::toInt8($this->_encoding) . $this->_language;
     switch ($this->_encoding) {
         case self::UTF16:
             $data .= Transform::toString16($this->_text);
             break;
         case self::UTF16BE:
             $data .= Transform::toString16BE($this->_text);
             break;
         case self::UTF16LE:
             $data .= Transform::toString16LE($this->_text);
             break;
         default:
             $data .= $this->_text;
     }
     $this->setData($data);
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:24,代碼來源:USER.php

示例14: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     parent::setData(Transform::toInt8($this->_format) . $this->_tempoData);
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:10,代碼來源:SYTC.php

示例15: __toString

 /**
  * Returns the tag raw data.
  *
  * @return string
  */
 private function __toString()
 {
   return "TAG" .
     Transform::toString8(substr($this->_title,  0, 30), 30) .
     Transform::toString8(substr($this->_artist, 0, 30), 30) .
     Transform::toString8(substr($this->_album,  0, 30), 30) .
     Transform::toString8(substr($this->_year,   0,  4),  4) .
     ($this->_track ?
      Transform::toString8(substr($this->_comment, 0, 28), 28) .
      "\0" . Transform::toInt8($this->_track) :
      Transform::toString8(substr($this->_comment, 0, 30), 30)) .
     Transform::toInt8($this->_genre);
 }
開發者ID:rtdean93,項目名稱:therock,代碼行數:18,代碼來源:ID3v1.php


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