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


PHP Transform::fromInt32BE方法代码示例

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


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

示例1: __construct

 /**
  * Constructs the class with given parameters and parses object related data.
  *
  * @param Reader $reader The reader object.
  * @param Array $options The options array.
  */
 public function __construct($reader = null, &$options = array())
 {
     parent::__construct($reader, $options);
     if ($reader === null) {
         return;
     }
     $this->_minOffset = Transform::fromInt32BE($this->_data);
 }
开发者ID:AsteriaGamer,项目名称:steamdriven-kohana,代码行数:14,代码来源:SEEK.php

示例2: __construct

 /**
  * Constructs the class with given parameters and parses object related
  * data.
  *
  * @param Zend_Io_Reader $reader The reader object.
  * @param Array $options The options array.
  */
 public function __construct($reader = null, &$options = array())
 {
     parent::__construct($reader, $options);
     if ($this->_reader === null) {
         throw new Zend_Media_Id3_Exception('Write not supported yet');
     }
     $this->_frames = Transform::fromInt16BE(substr($this->_data, 0, 2));
     $this->_bytes = Transform::fromInt32BE(substr($this->_data, 2, 3));
     $this->_milliseconds = Transform::fromInt32BE(substr($this->_data, 5, 3));
     $byteDevBits = Transform::fromInt8($this->_data[8]);
     $millisDevBits = Transform::fromInt8($this->_data[9]);
     // $data = substr($this->_data, 10);
 }
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:20,代码来源:Mllt.php

示例3: __construct

 /**
  * Constructs the class with given parameters and parses object related data.
  *
  * @param Reader $reader The reader object.
  * @param Array $options The options array.
  */
 public function __construct($reader = null, &$options = array())
 {
     parent::__construct($reader, $options);
     if ($reader === null) {
         throw new ID3_Exception("Write not supported yet");
     }
     $this->_dataStart = Transform::fromInt32BE(substr($this->_data, 0, 4));
     $this->_dataLength = Transform::fromInt32BE(substr($this->_data, 4, 4));
     $this->_size = Transform::fromInt16BE(substr($this->_data, 8, 2));
     $bitsPerPoint = Transform::fromInt8($this->_data[10]);
     /*for ($i = 0, $offset = 11; $i < $this->_size; $i++) {
         if ($bitsPerPoint == 16) {
           $this->_fractions[$i] = substr($this->_data, $offset, 2);
           $offset += 2;
         } else {
           $this->_fractions[$i] = substr($this->_data, $offset, 1);
           $offset ++;
         }
       }*/
 }
开发者ID:AsteriaGamer,项目名称:steamdriven-kohana,代码行数:26,代码来源:ASPI.php

示例4: __construct

 /**
  * Constructs the class with given parameters and parses object related data.
  *
  * @param Reader $reader The reader object.
  * @param Array $options The options array.
  */
 public function __construct($reader = null, &$options = array())
 {
   parent::__construct($reader, $options);
   
   if ($reader === null)
     return;
   
   $this->_bufferSize =
     Transform::fromUInt32BE("\0" . substr($this->_data, 0, 3));
   $this->_infoFlags = Transform::fromInt8($this->_data[3]);
   if ($this->getSize() > 4)
     $this->_offset = Transform::fromInt32BE(substr($this->_data, 4, 4));
 }
开发者ID:rtdean93,项目名称:therock,代码行数:19,代码来源:RBUF.php

示例5: __construct

 /**
  * Constructs the class with given parameters and parses object related data.
  *
  * @param Reader $reader The reader object.
  * @param Array $options The options array.
  */
 public function __construct($reader = null, &$options = array())
 {
     parent::__construct($reader, $options);
     if ($reader === null) {
         return;
     }
     $this->_format = Transform::fromInt8($this->_data[0]);
     for ($i = 1; $i < $this->getSize(); $i += 5) {
         $this->_events[Transform::fromInt32BE(substr($this->_data, $i + 1, 4))] = $data = Transform::fromInt8($this->_data[$i]);
         if ($data == 0xff) {
             break;
         }
     }
     sort($this->_events);
 }
开发者ID:AsteriaGamer,项目名称:steamdriven-kohana,代码行数:21,代码来源:ETCO.php

示例6: __construct

 /**
  * Constructs the class with given parameters and parses object related data.
  *
  * @param Reader $reader The reader object.
  * @param Array $options The options array.
  */
 public function __construct($reader = null, &$options = array())
 {
     parent::__construct($reader, $options);
     if ($reader === null) {
         return;
     }
     $this->_size = Transform::fromInt32BE(substr($this->_data, 0, 3));
     $this->_flags = Transform::fromInt8($this->_data[3]);
     $this->_offset = Transform::fromInt32BE(substr($this->_data, 4, 4));
 }
开发者ID:AsteriaGamer,项目名称:steamdriven-kohana,代码行数:16,代码来源:RBUF.php


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