Created
June 20, 2012 01:25
-
-
Save frsyuki/2957566 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="qs-ruby" class="qs"> | |
<h4>Ruby</h4> | |
<ul class="hlist"> | |
<li><a href="http://msgpack.org/rdoc/current/MessagePack.html">API Reference</a></li> | |
<li><a href="http://rubygems.org/gems/msgpack">RubyGems</a></li> | |
</ul> | |
<pre class="prettyprint">gem install msgpack</pre> | |
<pre class="prettyprint">require "msgpack" | |
msg = [1,2,3].to_msgpack #=> "\x93\x01\x02\x03" | |
MessagePack.unpack(msg) #=> [1,2,3]</pre> | |
<p>Ruby implementation provides <a href="http://msgpack.org/rdoc/current/MessagePack/Unpacker.html">streaming deserializer</a>.</p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment