<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mozilla.org/index.php?action=history&amp;feed=atom&amp;title=ServerJS%2FBinary%2FC%2FUnpacking</id>
	<title>ServerJS/Binary/C/Unpacking - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mozilla.org/index.php?action=history&amp;feed=atom&amp;title=ServerJS%2FBinary%2FC%2FUnpacking"/>
	<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=ServerJS/Binary/C/Unpacking&amp;action=history"/>
	<updated>2026-09-03T07:46:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=ServerJS/Binary/C/Unpacking&amp;diff=166706&amp;oldid=prev</id>
		<title>Dantman: Created page with &#039;These methods are related to unpacking, they were  be removed from the proposal in favor of specifying that at a higher layer but are here for reference until we write a proposal…&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=ServerJS/Binary/C/Unpacking&amp;diff=166706&amp;oldid=prev"/>
		<updated>2009-09-05T11:31:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;These methods are related to unpacking, they were  be removed from the proposal in favor of specifying that at a higher layer but are here for reference until we write a proposal…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;These methods are related to unpacking, they were  be removed from the proposal in favor of specifying that at a higher layer but are here for reference until we write a proposal for unpacking of binary data.&lt;br /&gt;
&lt;br /&gt;
;blob.integerAt(offset, size=1, signed=false, networkEndian=false);&lt;br /&gt;
:Extracts an integer out of a blob. Arguments may control the byte size extracted whether the number is signed or unsigned, and whether or not the byte is in networkEndian or not. The default is to return a single unsigned byte in the form of an integer in the range 0..255.&lt;br /&gt;
&lt;br /&gt;
;blob.floatAt(offset, size);&lt;br /&gt;
:Extracts a float out of a blob. This method requires a size argument of either 4 (floats) or 8 (doubles) to extract a number and should generate a TypeError if passed invalid params.&lt;br /&gt;
&lt;br /&gt;
;blob.stringAt(offset, size, fromCharset=UTF-16);&lt;br /&gt;
:Extracts a string out from a blob. This method is similar to if you had done &amp;lt;code&amp;gt;blob.slice(offset, size).toString(fromCharset||&amp;quot;UTF-16&amp;quot;);&amp;lt;/code&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Dantman</name></author>
	</entry>
</feed>