public static function __initialize()
 {
     $arr = array(0);
     for ($index = 1; $index < 65; $index++) {
         $arr[$index] = pow(2, $index) - 1;
     }
     self::$POWS_LENGTH = count($arr);
     self::$POWS = $arr;
 }
Example #2
0
 public function writeByte($value)
 {
     $this->writeUnsignedByte(BinUtils::convertToUnsignedForm($value, self::BYTE_LENGTH, $this->_useTwosComplement));
 }