<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://fileformats.archiveteam.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://fileformats.archiveteam.org/index.php?action=history&amp;feed=atom&amp;title=Thrift_binary_protocol</id>
		<title>Thrift binary protocol - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://fileformats.archiveteam.org/index.php?action=history&amp;feed=atom&amp;title=Thrift_binary_protocol"/>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Thrift_binary_protocol&amp;action=history"/>
		<updated>2026-04-23T04:13:17Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.2</generator>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Thrift_binary_protocol&amp;diff=31747&amp;oldid=prev</id>
		<title>Effect2: Removed no-longer-relevant (after further research in the course of writing the page) remark</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Thrift_binary_protocol&amp;diff=31747&amp;oldid=prev"/>
				<updated>2019-05-20T05:25:48Z</updated>
		
		<summary type="html">&lt;p&gt;Removed no-longer-relevant (after further research in the course of writing the page) remark&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 05:25, 20 May 2019&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Identification ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Identification ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;In the new&amp;lt;ref name=&amp;quot;commit&amp;quot;&amp;gt;Commit 589859984f43af1ed0f9ee45ce8374a0d1640813&amp;lt;/ref&amp;gt; (&amp;quot;strict&amp;quot;) header type, binary protocol files start with a one-byte message type, a zero byte, and then the version indicator &amp;lt;code&amp;gt;0x01 0x00 0x00 0x08&amp;lt;/code&amp;gt;.&amp;lt;ref&amp;gt;Thrift source → /lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java → definition of VERSION_MASK and VERSION_1, and of writeMessageBegin(). https://stackoverflow.com/questions/8402479/error-while-compiling-thrift-server indicates that the version/size integer is presumably stored [[endianness|little-endian]].&amp;lt;/ref&amp;gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(This version indicator has been steady since at least as far back as 2011.) &lt;/del&gt;This is followed by an encoded string (a 32-bit length and series of bytes) and a 32-bit sequence ID.&amp;lt;ref&amp;gt;Thrift source → /lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java → readMessageBegin(); /lib/java/src/org/apache/thrift/protocol/TMessage.java&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;In the new&amp;lt;ref name=&amp;quot;commit&amp;quot;&amp;gt;Commit 589859984f43af1ed0f9ee45ce8374a0d1640813&amp;lt;/ref&amp;gt; (&amp;quot;strict&amp;quot;) header type, binary protocol files start with a one-byte message type, a zero byte, and then the version indicator &amp;lt;code&amp;gt;0x01 0x00 0x00 0x08&amp;lt;/code&amp;gt;.&amp;lt;ref&amp;gt;Thrift source → /lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java → definition of VERSION_MASK and VERSION_1, and of writeMessageBegin(). https://stackoverflow.com/questions/8402479/error-while-compiling-thrift-server indicates that the version/size integer is presumably stored [[endianness|little-endian]].&amp;lt;/ref&amp;gt;. This is followed by an encoded string (a 32-bit length and series of bytes) and a 32-bit sequence ID.&amp;lt;ref&amp;gt;Thrift source → /lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java → readMessageBegin(); /lib/java/src/org/apache/thrift/protocol/TMessage.java&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;In the old&amp;lt;ref name=&amp;quot;commit&amp;quot; /&amp;gt; (non-&amp;quot;strict&amp;quot;) header type, the message begins with the encoded string of the message name, followed by the type byte, followed by a 32-bit sequence ID.&amp;lt;ref&amp;gt;Thrift source → /lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java → readMessageBegin()&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;In the old&amp;lt;ref name=&amp;quot;commit&amp;quot; /&amp;gt; (non-&amp;quot;strict&amp;quot;) header type, the message begins with the encoded string of the message name, followed by the type byte, followed by a 32-bit sequence ID.&amp;lt;ref&amp;gt;Thrift source → /lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java → readMessageBegin()&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Effect2</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Thrift_binary_protocol&amp;diff=31746&amp;oldid=prev</id>
		<title>Effect2: Added :Category:Apache</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Thrift_binary_protocol&amp;diff=31746&amp;oldid=prev"/>
				<updated>2019-05-20T05:24:20Z</updated>
		
		<summary type="html">&lt;p&gt;Added &lt;a href=&quot;/wiki/Category:Apache&quot; title=&quot;Category:Apache&quot;&gt;Category:Apache&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 05:24, 20 May 2019&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;references /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;references /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Apache]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Facebook]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Facebook]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Effect2</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Thrift_binary_protocol&amp;diff=31744&amp;oldid=prev</id>
		<title>Effect2: Created page with &quot;{{FormatInfo |formattype=electronic |subcat=Serialization |released=2007 }} Apache Thrift, a serialization/RPC system with much more emphasis on RPC than serialization, ca...&quot;</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Thrift_binary_protocol&amp;diff=31744&amp;oldid=prev"/>
				<updated>2019-05-20T05:21:51Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{FormatInfo |formattype=electronic |subcat=Serialization |released=2007 }} Apache Thrift, a &lt;a href=&quot;/wiki/Serialization&quot; title=&quot;Serialization&quot;&gt;serialization&lt;/a&gt;/RPC system with much more emphasis on RPC than serialization, ca...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{FormatInfo&lt;br /&gt;
|formattype=electronic&lt;br /&gt;
|subcat=Serialization&lt;br /&gt;
|released=2007&lt;br /&gt;
}}&lt;br /&gt;
Apache Thrift, a [[serialization]]/RPC system with much more emphasis on RPC than serialization, calls its serialization formats &amp;quot;protocols&amp;quot;; the oldest Thrift-specific protocol is the &amp;quot;'''binary&amp;quot;''' protocol, while the newer one is the &amp;quot;[[Thrift compact protocol|compact]]&amp;quot; protocol.&amp;lt;ref&amp;gt;https://thrift.apache.org/docs/concepts#protocol&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Identification ==&lt;br /&gt;
In the new&amp;lt;ref name=&amp;quot;commit&amp;quot;&amp;gt;Commit 589859984f43af1ed0f9ee45ce8374a0d1640813&amp;lt;/ref&amp;gt; (&amp;quot;strict&amp;quot;) header type, binary protocol files start with a one-byte message type, a zero byte, and then the version indicator &amp;lt;code&amp;gt;0x01 0x00 0x00 0x08&amp;lt;/code&amp;gt;.&amp;lt;ref&amp;gt;Thrift source → /lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java → definition of VERSION_MASK and VERSION_1, and of writeMessageBegin(). https://stackoverflow.com/questions/8402479/error-while-compiling-thrift-server indicates that the version/size integer is presumably stored [[endianness|little-endian]].&amp;lt;/ref&amp;gt;. (This version indicator has been steady since at least as far back as 2011.) This is followed by an encoded string (a 32-bit length and series of bytes) and a 32-bit sequence ID.&amp;lt;ref&amp;gt;Thrift source → /lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java → readMessageBegin(); /lib/java/src/org/apache/thrift/protocol/TMessage.java&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the old&amp;lt;ref name=&amp;quot;commit&amp;quot; /&amp;gt; (non-&amp;quot;strict&amp;quot;) header type, the message begins with the encoded string of the message name, followed by the type byte, followed by a 32-bit sequence ID.&amp;lt;ref&amp;gt;Thrift source → /lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java → readMessageBegin()&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [https://thrift.apache.org/ Thrift website]&lt;br /&gt;
* [https://thrift.apache.org/static/files/thrift-20070401.pdf The original Thrift description]&lt;br /&gt;
* [https://thrift.apache.org/docs/concepts#protocol A brief description of protocols]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Facebook]]&lt;/div&gt;</summary>
		<author><name>Effect2</name></author>	</entry>

	</feed>