2015-03-07 wcdj
摘要:本文介绍在C/C++中如何使用MessagePack的方法。
官方是这样介绍MessagePack的:
MessagePack is an efficient binary serialization format. It lets you exchange data among multiple languages like JSON. But it's faster and smaller. Small integers are encoded into a single byte, and typical short strings require only one extra byte in addition to the strings themselves.
在OS X 10.10.1环境下使用msgpack-c的方法如下:
1 msgpack for c
(1) 下载msgpack和编译
$ wget http://msgpack.org/releases/cpp/msgpack-0.5.5.tar.gz $ tar zxvf msgpack-0.5.5.tar.gz $ cd msgpack-0.5.5 $ ./configure $ make