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"];
}