<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AMF &#8211; Errata and other ramblings</title>
	<atom:link href="http://timwhitlock.info/blog/2008/09/13/amf-errata-and-other-ramblings/feed/" rel="self" type="application/rss+xml" />
	<link>http://timwhitlock.info/blog/2008/09/13/amf-errata-and-other-ramblings/</link>
	<description>Tim Whitlock&#039;s personal site and blog</description>
	<lastBuildDate>Fri, 03 Feb 2012 12:28:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Tim</title>
		<link>http://timwhitlock.info/blog/2008/09/13/amf-errata-and-other-ramblings/#comment-40</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 14 Oct 2008 21:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/#comment-40</guid>
		<description>I don&#039;t know about windows, but in PHP you need to reverse the 8 byte string before unpacking the data.

$s = &quot;\x3F\xF3\xAE\x14\x7A\xE1\x47\xAE&quot;;
$d = current( unpack(&#039;d&#039;, 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(&#8216;d&#8217;, strrev($s) ) );<br />
var_dump( $d ); // float(1.23)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umberto21</title>
		<link>http://timwhitlock.info/blog/2008/09/13/amf-errata-and-other-ramblings/#comment-38</link>
		<dc:creator>umberto21</dc:creator>
		<pubDate>Tue, 14 Oct 2008 04:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/#comment-38</guid>
		<description>There is also something weird I noticed with the REAL/DOUBLE : it isn&#039;t bit coded correctly on Win32/VS2008 : you can&#039;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.  <img src='http://timwhitlock.info/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' />   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://timwhitlock.info/blog/2008/09/13/amf-errata-and-other-ramblings/#comment-39</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 14 Oct 2008 04:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/#comment-39</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://timwhitlock.info/blog/2008/09/13/amf-errata-and-other-ramblings/#comment-37</link>
		<dc:creator>umberto21</dc:creator>
		<pubDate>Tue, 14 Oct 2008 04:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/09/13/amf-errata-and-other-ramblings/#comment-37</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&amp;url=http://cvs.savannah.gnu.org/viewcvs/gnash/libamf/amf.cpp%3fcvsroot%3dgnash%26r1%3d1.15%26r2%3d1.16&amp;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 <img src='http://timwhitlock.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><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>

