<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: AMF - Errata and other ramblings</title>
	<link>http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/</link>
	<description>Tim Whitlock's home in the Blogohedron</description>
	<pubDate>Wed, 07 Jan 2009 09:01:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Tim</title>
		<link>http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/#comment-74</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 14 Oct 2008 21:30:02 +0000</pubDate>
		<guid>http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/#comment-74</guid>
		<description>I don't know about windows, but in PHP you need to reverse the 8 byte string before unpacking the data.

$s = "\x3F\xF3\xAE\x14\x7A\xE1\x47\xAE";
$d = current( unpack('d', strrev($s) ) );
var_dump( $d ); // float(1.23)</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know about windows, but in PHP you need to reverse the 8 byte string before unpacking the data.</p>
<p>$s = &#8220;\x3F\xF3\xAE\x14\x7A\xE1\x47\xAE&#8221;;<br />
$d = current( unpack(&#8217;d', strrev($s) ) );<br />
var_dump( $d ); // float(1.23)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umberto21</title>
		<link>http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/#comment-72</link>
		<dc:creator>umberto21</dc:creator>
		<pubDate>Tue, 14 Oct 2008 04:05:28 +0000</pubDate>
		<guid>http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/#comment-72</guid>
		<description>There is also something weird I noticed with the REAL/DOUBLE : it isn't bit coded correctly on Win32/VS2008 : you can't just case a DOUBLE into 8 bytes. there is some other coding mechanism where they split the decimal part and the integer part..  I am trying to work it out.  8)   They have the same AMF coded DOuble in the headers of FLV files (open one with HexEditor and try to work out the video time duration in {millisec.nanosec} ).</description>
		<content:encoded><![CDATA[<p>There is also something weird I noticed with the REAL/DOUBLE : it isn&#8217;t bit coded correctly on Win32/VS2008 : you can&#8217;t just case a DOUBLE into 8 bytes. there is some other coding mechanism where they split the decimal part and the integer part..  I am trying to work it out.  8)   They have the same AMF coded DOuble in the headers of FLV files (open one with HexEditor and try to work out the video time duration in {millisec.nanosec} ).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/#comment-73</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 14 Oct 2008 04:02:47 +0000</pubDate>
		<guid>http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/#comment-73</guid>
		<description>536870912 possible values includes 0, so max is 536870911.
likewise with unsigned; -268435456 to +268435455</description>
		<content:encoded><![CDATA[<p>536870912 possible values includes 0, so max is 536870911.<br />
likewise with unsigned; -268435456 to +268435455</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umberto21</title>
		<link>http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/#comment-71</link>
		<dc:creator>umberto21</dc:creator>
		<pubDate>Tue, 14 Oct 2008 04:01:52 +0000</pubDate>
		<guid>http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/#comment-71</guid>
		<description>14 Oct 2008

I agree : they must have a typo in the 13 page doc on AMF3 ;) 
the range of their weird INT encoding is from 0 to 536870912 .. or from -268435456 to +268435456 




REF :


http://cvs.savannah.gnu.org/viewvc/*checkout*/gnash/libamf/amf.cpp?root=gnash 

http://myt.ag/URLWeb.aspx?email=steve@fooworks.com&#38;url=http://cvs.savannah.gnu.org/viewcvs/gnash/libamf/amf.cpp%3fcvsroot%3dgnash%26r1%3d1.15%26r2%3d1.16&#38;sn= 

http://cvs.savannah.gnu.org/viewvc/*checkout*/gnash/libamf/amfutf8.h?root=gnash</description>
		<content:encoded><![CDATA[<p>14 Oct 2008</p>
<p>I agree : they must have a typo in the 13 page doc on AMF3 ;)<br />
the range of their weird INT encoding is from 0 to 536870912 .. or from -268435456 to +268435456 </p>
<p>REF :</p>
<p><a href="http://cvs.savannah.gnu.org/viewvc/" rel="nofollow">http://cvs.savannah.gnu.org/viewvc/</a>*checkout*/gnash/libamf/amf.cpp?root=gnash </p>
<p><a href="http://myt.ag/URLWeb.aspx?email=steve@fooworks.com&amp;url=http://cvs.savannah.gnu.org/viewcvs/gnash/libamf/amf.cpp%3fcvsroot%3dgnash%26r1%3d1.15%26r2%3d1.16&amp;sn=" rel="nofollow">http://myt.ag/URLWeb.aspx?email=steve@fooworks.com&amp;url=http://cvs.savannah.gnu.org/viewcvs/gnash/libamf/amf.cpp%3fcvsroot%3dgnash%26r1%3d1.15%26r2%3d1.16&amp;sn=</a> </p>
<p><a href="http://cvs.savannah.gnu.org/viewvc/" rel="nofollow">http://cvs.savannah.gnu.org/viewvc/</a>*checkout*/gnash/libamf/amfutf8.h?root=gnash</p>
]]></content:encoded>
	</item>
</channel>
</rss>
