Amfphp_Core_Amf_Deserializer::readAmf3VectorValue PHP Метод

readAmf3VectorValue() защищенный Метод

Read numeric values from the AMF byte stream. Please be aware that unsigned integers are not really supported in PHP, and for this reason unsigned integers are cast to float. {@link http://php.net/manual/en/language.types.integer.php}.
protected readAmf3VectorValue ( $length, $format ) :
Результат
    protected function readAmf3VectorValue($length, $format)
    {
        $bytes = $this->readBuffer($length);
        if (Amfphp_Core_Amf_Util::isSystemBigEndian()) {
            $bytes = strrev($bytes);
        }
        $array = unpack($format, $bytes);
        // Unsigned Integers don't work in PHP amazingly enough. If you go into the "upper" region
        // on the Actionscript side, this will come through as a negative without this cast to a float
        // see http://php.net/manual/en/language.types.integer.php
        if ($format === "Ival") {
            $array["val"] = floatval(sprintf('%u', $array["val"]));
        }
        return $array["val"];
    }