protected function readDouble()
{
$bytes = substr($this->rawData, $this->currentByte, 8);
$this->currentByte += 8;
if (Amfphp_Core_Amf_Util::isSystemBigEndian()) {
$bytes = strrev($bytes);
}
$zz = unpack('dflt', $bytes);
// unpack the bytes
return $zz['flt'];
// return the number from the associative array
}