<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>web development helpdesk &#187; representation</title>
	<atom:link href="http://helpdesk.objects.com.au/tag/representation/feed" rel="self" type="application/rss+xml" />
	<link>http://helpdesk.objects.com.au</link>
	<description>objects quality - the visible difference</description>
	<lastBuildDate>Sun, 17 Jul 2011 12:27:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>How to convert byte array to long</title>
		<link>http://helpdesk.objects.com.au/java/how-to-convert-byte-array-to-long?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-convert-byte-array-to-long</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-convert-byte-array-to-long#comments</comments>
		<pubDate>Tue, 17 Nov 2009 21:25:27 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[byte array]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[long]]></category>
		<category><![CDATA[representation]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1291</guid>
		<description><![CDATA[The following code can be used to convert a byte array (containing the bytes of a long) into a long. public static long byteArrayToLong(byte[] bytes) { long l = 0; for (int i=0; i&#60;8; i++) { l &#60;&#60;= 8; l ^= (long) bytes[i] &#38; 0xff; } return l; } This is the reverse of &#8220;How [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-convert-byte-array-to-long/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to convert double to byte array</title>
		<link>http://helpdesk.objects.com.au/java/how-to-convert-double-to-byte-array?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-convert-double-to-byte-array</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-convert-double-to-byte-array#comments</comments>
		<pubDate>Fri, 15 May 2009 23:52:48 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[double]]></category>
		<category><![CDATA[IEEE 754]]></category>
		<category><![CDATA[representation]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1159</guid>
		<description><![CDATA[The Double class contains two methods that return a representation of a floating point value according to the IEEE 754 floating-point &#8220;double format&#8221; bit layout. The first, doubleToLongBits() does not preserve NaN and returns it as 0x7ff8000000000000L. The second, doubleToRawLongBits() does preserve NaN and returns the representation of the actual NaN value. The long returned [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-convert-double-to-byte-array/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to convert a long to a byte array</title>
		<link>http://helpdesk.objects.com.au/java/how-to-convert-a-long-to-a-byte-array?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-convert-a-long-to-a-byte-array</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-convert-a-long-to-a-byte-array#comments</comments>
		<pubDate>Fri, 15 May 2009 23:03:23 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[byte array]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[long]]></category>
		<category><![CDATA[representation]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1161</guid>
		<description><![CDATA[The following code can be used to extract the 8 bytes from a long value and return them as a byte array public static byte[] longToByteArray(long data) { return new byte[] { (byte)((data &#62;&#62; 56) &#38; 0xff), (byte)((data &#62;&#62; 48) &#38; 0xff), (byte)((data &#62;&#62; 40) &#38; 0xff), (byte)((data &#62;&#62; 32) &#38; 0xff), (byte)((data &#62;&#62; 24) [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-convert-a-long-to-a-byte-array/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

