<?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 for Dooba.net</title>
	<atom:link href="http://dooba.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://dooba.net</link>
	<description>Tech, Science, Insanity</description>
	<lastBuildDate>Tue, 13 Dec 2011 05:09:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on C# and Serializing Structs to byte arrays by David</title>
		<link>http://dooba.net/2009/07/02/c-sharp-and-serializing-byte-arrays/comment-page-1/#comment-95</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 13 Dec 2011 05:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://dooba.net/?p=166#comment-95</guid>
		<description>The problem is not converting strings to byte arrays and back. When you have a struct with the string variable in it, the struct itself only stores a reference to the string. The actual string data is stored in some memory location allocated for that string. So if you do a SizeOf(MyStruct), it does not include the variable length of the string, just the size in bytes of the reference to the string. So when you serialize the struct you just get the address of the string, which is meaningless on the system you send the message to.

You could do something like append the real string as a byte[ ]  to the end of the message and then use the bytes where the string reference was in the struct&#039;s byte[ ] to store the length of the string. Then on the receiving end you would deserialize back the struct, set the MyStruct.someSrtring = new string(bytes appended to the message).</description>
		<content:encoded><![CDATA[<p>The problem is not converting strings to byte arrays and back. When you have a struct with the string variable in it, the struct itself only stores a reference to the string. The actual string data is stored in some memory location allocated for that string. So if you do a SizeOf(MyStruct), it does not include the variable length of the string, just the size in bytes of the reference to the string. So when you serialize the struct you just get the address of the string, which is meaningless on the system you send the message to.</p>
<p>You could do something like append the real string as a byte[ ]  to the end of the message and then use the bytes where the string reference was in the struct&#8217;s byte[ ] to store the length of the string. Then on the receiving end you would deserialize back the struct, set the MyStruct.someSrtring = new string(bytes appended to the message).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C# and Serializing Structs to byte arrays by Jimmy JoeBob Alooba</title>
		<link>http://dooba.net/2009/07/02/c-sharp-and-serializing-byte-arrays/comment-page-1/#comment-94</link>
		<dc:creator>Jimmy JoeBob Alooba</dc:creator>
		<pubDate>Tue, 06 Dec 2011 15:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://dooba.net/?p=166#comment-94</guid>
		<description>Actually, strings are no problem.

byte[] ToBytes(string ThisString)
{
    byte[] StringBytes = System.Text.Encoding.UTF8.GetBytes(ThisString);
    return StringBytes;
}

string FromBytes(byte[] TheseBytes)
{
    string ThisString = new String(System.Text.Encoding.UTF8.GetChars(TheseBytes));
    return ThisString;
}

..Of course, you may have to do some byte reversals depending on your data transmission format (such as over networks).</description>
		<content:encoded><![CDATA[<p>Actually, strings are no problem.</p>
<p>byte[] ToBytes(string ThisString)<br />
{<br />
    byte[] StringBytes = System.Text.Encoding.UTF8.GetBytes(ThisString);<br />
    return StringBytes;<br />
}</p>
<p>string FromBytes(byte[] TheseBytes)<br />
{<br />
    string ThisString = new String(System.Text.Encoding.UTF8.GetChars(TheseBytes));<br />
    return ThisString;<br />
}</p>
<p>..Of course, you may have to do some byte reversals depending on your data transmission format (such as over networks).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C# and Serializing Structs to byte arrays by Jan de Jager</title>
		<link>http://dooba.net/2009/07/02/c-sharp-and-serializing-byte-arrays/comment-page-1/#comment-92</link>
		<dc:creator>Jan de Jager</dc:creator>
		<pubDate>Sun, 02 Oct 2011 10:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://dooba.net/?p=166#comment-92</guid>
		<description>This is an awesome post. But my question if how would you go about using this solution on a on variable bit length structure. i.e.

field 1  = bit 15 to 13
field 2 = bit 12 to 10
field 3 = bit 9 to 0 

etc...</description>
		<content:encoded><![CDATA[<p>This is an awesome post. But my question if how would you go about using this solution on a on variable bit length structure. i.e.</p>
<p>field 1  = bit 15 to 13<br />
field 2 = bit 12 to 10<br />
field 3 = bit 9 to 0 </p>
<p>etc&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C# and Serializing Structs to byte arrays by Anibalismo</title>
		<link>http://dooba.net/2009/07/02/c-sharp-and-serializing-byte-arrays/comment-page-1/#comment-88</link>
		<dc:creator>Anibalismo</dc:creator>
		<pubDate>Wed, 04 May 2011 17:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://dooba.net/?p=166#comment-88</guid>
		<description>THANK YOU SO MUCH!!! I&#039;ve been stuck on this problem for a couple of days...

PD: Sorry my shitty English...</description>
		<content:encoded><![CDATA[<p>THANK YOU SO MUCH!!! I&#8217;ve been stuck on this problem for a couple of days&#8230;</p>
<p>PD: Sorry my shitty English&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatically backup your Mac to Amazon S3 by Patrice Strock</title>
		<link>http://dooba.net/2009/06/19/automatically-backup-your-mac-to-amazon-s3/comment-page-1/#comment-87</link>
		<dc:creator>Patrice Strock</dc:creator>
		<pubDate>Mon, 14 Mar 2011 08:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://dooba.net/?p=128#comment-87</guid>
		<description>I think this is one of the most important information for me. And i&#039;m glad reading your article. But wanna remark on few general things, The web site style is great, the articles is really nice : D. Good job, cheers</description>
		<content:encoded><![CDATA[<p>I think this is one of the most important information for me. And i&#8217;m glad reading your article. But wanna remark on few general things, The web site style is great, the articles is really nice : D. Good job, cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatically backup your Mac to Amazon S3 by Roop</title>
		<link>http://dooba.net/2009/06/19/automatically-backup-your-mac-to-amazon-s3/comment-page-1/#comment-86</link>
		<dc:creator>Roop</dc:creator>
		<pubDate>Wed, 09 Mar 2011 23:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://dooba.net/?p=128#comment-86</guid>
		<description>Another S3 client for Mac : http://www.dragondisk.com/
The Sync feature is excellent !</description>
		<content:encoded><![CDATA[<p>Another S3 client for Mac : <a href="http://www.dragondisk.com/" rel="nofollow">http://www.dragondisk.com/</a><br />
The Sync feature is excellent !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Droid SMS by Jen</title>
		<link>http://dooba.net/2009/11/09/droid-sms/comment-page-1/#comment-85</link>
		<dc:creator>Jen</dc:creator>
		<pubDate>Sun, 12 Dec 2010 19:25:04 +0000</pubDate>
		<guid isPermaLink="false">http://dooba.net/?p=213#comment-85</guid>
		<description>I have handcent and had to get a new device, now when I try to log in it says I am bound to another device and the handcent forum has been left unanswered by them for quite some time, anyone have any ideas?</description>
		<content:encoded><![CDATA[<p>I have handcent and had to get a new device, now when I try to log in it says I am bound to another device and the handcent forum has been left unanswered by them for quite some time, anyone have any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Droid SMS by Gloria</title>
		<link>http://dooba.net/2009/11/09/droid-sms/comment-page-1/#comment-51</link>
		<dc:creator>Gloria</dc:creator>
		<pubDate>Wed, 16 Jun 2010 17:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://dooba.net/?p=213#comment-51</guid>
		<description>I have downloaded the handcent app to my moto droid numerous times and have had to uninstall due to problems when I send a text. Most of my contacts tell me they see nothing on their end!
Please help, I love the app!</description>
		<content:encoded><![CDATA[<p>I have downloaded the handcent app to my moto droid numerous times and have had to uninstall due to problems when I send a text. Most of my contacts tell me they see nothing on their end!<br />
Please help, I love the app!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C# and Serializing Structs to byte arrays by huynhdt</title>
		<link>http://dooba.net/2009/07/02/c-sharp-and-serializing-byte-arrays/comment-page-1/#comment-50</link>
		<dc:creator>huynhdt</dc:creator>
		<pubDate>Thu, 20 May 2010 03:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://dooba.net/?p=166#comment-50</guid>
		<description>&lt;a href=&quot;#comment-45&quot; rel=&quot;nofollow&quot;&gt;@David &lt;/a&gt; 
Could you give a pie of example. Thanks.</description>
		<content:encoded><![CDATA[<p><a href="#comment-45" rel="nofollow">@David </a><br />
Could you give a pie of example. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatically backup your Mac to Amazon S3 by Bookmarks for May 13th through May 14th &#124; dekay.org</title>
		<link>http://dooba.net/2009/06/19/automatically-backup-your-mac-to-amazon-s3/comment-page-1/#comment-48</link>
		<dc:creator>Bookmarks for May 13th through May 14th &#124; dekay.org</dc:creator>
		<pubDate>Fri, 14 May 2010 15:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://dooba.net/?p=128#comment-48</guid>
		<description>[...] Dooba.net &#187; Automatically backup your Mac to Amazon S3&#160;&#8211; (tags: net backup amazons3 script macosx ) [...]</description>
		<content:encoded><![CDATA[<p>[...] Dooba.net &raquo; Automatically backup your Mac to Amazon S3&#160;&#8211; (tags: net backup amazons3 script macosx ) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
