Dirkjan Bussink 65c360a2ca Don't use MRI internals in the Ruby extension
Using internals of MRI by using RARRAY_PTR makes it necessary for other
implementations such as Rubinius to continuously copy the structure
returned by RARRAY_PTR back and forth since in Rubinius objects are
layed out differently internally.

Extensions should not depend and use these internal MRI structures if
this is not necessary and when there are API methods that can provide
the same functionality. This makes sure other implementations can also
use the extension without any big problems.

For this reason I also removed the FIXME comment, since that change
would also heavily depend on the internal memory layout of objects on
MRI.
2012-03-17 11:28:19 +01:00
..
2010-11-24 17:24:55 +09:00
2010-04-22 14:56:25 +09:00
2009-02-15 09:09:56 +00:00
2011-08-08 23:50:25 +09:00
2011-08-08 23:49:19 +09:00
2010-11-24 17:24:55 +09:00
2010-05-26 07:43:05 +09:00
2010-05-26 07:43:05 +09:00
2010-05-26 07:43:05 +09:00
2011-08-08 23:50:25 +09:00

= MessagePack

== Description

MessagePack is a binary-based efficient object serialization library.
It enables to exchange structured objects between many languages like JSON.
But unlike JSON, it is very fast and small.

Simple usage is as follows:

  require 'msgpack'
  msg = [1,2,3].to_msgpack  #=> "\x93\x01\x02\x03"
  MessagePack.unpack(msg)   #=> [1,2,3]

Use MessagePack::Unpacker for streaming deserialization.


== Installation

=== Archive Installation

  ruby extconf.rb
  make
  make install

=== Gem Installation

  gem install msgpack


== Copyright

Author::    frsyuki <frsyuki@users.sourceforge.jp>
Copyright:: Copyright (c) 2008-2010 FURUHASHI Sadayuki
License::   Apache License, Version 2.0