mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-12-24 14:19:09 +01:00
a114f4a5a5136a24f46bb52ffef1d1f588ba94e1
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@100 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
MessagePack
-----------
Binary-based efficient data interchange format.
*Requirements
MessagePack is only tested on Linux and Mac OS X, but it may run on other
UNIX-like platforms.
Following programs is required to build:
- gcc >= 4.0 with C++ support
- ruby >= 1.8 (ruby is used as a preprocessor)
*Installation
Simply run ./configure && make && make install to install C and C++ binding.
$ ./configure --prefix=path/to/prefix
$ make
$ make install
To install Ruby binding, run ./gengem.sh script in ruby/ directory and install
generated gem package.
$ cd ruby
$ ./gengem.sh
$ gem install gem/pkg/msgpack-*.gem
*Usage
C++:
#include <msgpack.hpp>
// TODO
C:
#include <msgpack.h>
/* TODO */
Ruby:
require 'msgpack'
# serialize
buf = [1, 2, 3].to_msgpack
# deserialize
p MessagePack::unpack(buf)
# TODO
Copyright (C) 2008 FURUHASHI Sadayuki
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Description
Languages
Text
100%