当前位置: 首页>>代码示例>>PHP>>正文


PHP Transform::toInt64BE方法代码示例

本文整理汇总了PHP中Transform::toInt64BE方法的典型用法代码示例。如果您正苦于以下问题:PHP Transform::toInt64BE方法的具体用法?PHP Transform::toInt64BE怎么用?PHP Transform::toInt64BE使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Transform的用法示例。


在下文中一共展示了Transform::toInt64BE方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
   $data = $this->_device . "\0";
   foreach ($this->_adjustments as $channel) {
     $data .= Transform::toInt8($channel[self::channelType]) .
       Transform::toInt16BE($channel[self::volumeAdjustment] * 512);
     if (abs($channel[self::peakVolume]) <= 0xff)
       $data .= Transform::toInt8(8) .
         Transform::toUInt8($channel[self::peakVolume]);
     else if (abs($channel[self::peakVolume]) <= 0xffff)
       $data .= Transform::toInt8(16) .
         Transform::toUInt16BE($channel[self::peakVolume]);
     else if (abs($channel[self::peakVolume]) <= 0xffffffff)
       $data .= Transform::toInt8(32) .
         Transform::toUInt32BE($channel[self::peakVolume]);
     else
       $data .= Transform::toInt8(64) .
         Transform::toInt64BE($channel[self::peakVolume]); // UInt64
   }
   $this->setData($data);
   return parent::__toString();
 }
开发者ID:rtdean93,项目名称:therock,代码行数:27,代码来源:RVA2.php

示例2: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
   $this->setData
     ($this->_counter > 4294967295 ?
      Transform::toInt64BE($this->_counter) : // UInt64
      Transform::toUInt32BE($this->_counter));
   return parent::__toString();
 }
开发者ID:rtdean93,项目名称:therock,代码行数:13,代码来源:PCNT.php

示例3: __toString

 /**
  * Returns the box raw data.
  *
  * @return string
  */
 public function __toString($data = "")
 {
   if ($this->isContainer())
     foreach ($this->getBoxes() as $name => $boxes)
       foreach ($boxes as $box)
         $data .= $box;
   $size = strlen($data) + 8;
   if ($size > 0xffffffff)
     $size += 8;
   if (strlen($this->_type) > 4)
     $size += 16;
   return ($size > 0xffffffff ?
            Transform::toUInt32BE(1) : Transform::toUInt32BE($size)) .
     (strlen($this->_type) > 4 ? "uuid" : $this->_type) .
     ($size > 0xffffffff ? Transform::toInt64BE($size) : "") . 
     (strlen($this->_type) > 4 ? Transform::toGUID($this->_type) : "") . $data;
 }
开发者ID:rtdean93,项目名称:therock,代码行数:22,代码来源:Box.php

示例4: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
   $this->setData
     ($this->_owner . "\0" . Transform::toInt8($this->_rating) .
      ($this->_counter > 0xffffffff ?
       Transform::toInt64BE($this->_counter) :
       ($this->_counter > 0 ? Transform::toUInt32BE($this->_counter) : 0)));
   return parent::__toString();
 }
开发者ID:rtdean93,项目名称:therock,代码行数:14,代码来源:POPM.php

示例5: __toString

 /**
  * Returns the box raw data.
  *
  * @return string
  */
 public function __toString($data = "")
 {
   $data = Transform::toUInt32BE(count($this->_chunkOffsetTable));
   foreach ($this->_chunkOffsetTable as $chunkOffset)
     $data .= Transform::toInt64BE($chunkOffset);
   return parent::__toString($data);
 }
开发者ID:rtdean93,项目名称:therock,代码行数:12,代码来源:CO64.php


注:本文中的Transform::toInt64BE方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。