Skip to content

Commit e183efc

Browse files
committed
Merge pull request #387 from kgrz/update-quick-start-docs-with-new-api
Update install instructions and QUICKSTART-C.md
2 parents 953077b + 772e4e0 commit e183efc

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

QUICKSTART-C.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ On Gentoo Linux, you can use emerge. Install [dev-libs/msgpack|http://gentoo-por
3636
On the other UNIX-like platforms, download source package from [Releases|http://msgpack.org/releases/cpp/] and run `./configure && make && make install`.
3737

3838
```
39-
$ wget http://msgpack.org/releases/cpp/msgpack-0.5.5.tar.gz
40-
$ tar zxvf msgpack-0.5.5.tar.gz
41-
$ cd msgpack-0.5.5
39+
$ wget http://msgpack.org/releases/cpp/msgpack-1.3.0.tar.gz
40+
$ tar zxvf msgpack-1.3.0.tar.gz
41+
$ cd msgpack-1.3.0
4242
$ ./configure
4343
$ make
4444
$ sudo make install
@@ -88,10 +88,10 @@ int main(void) {
8888

8989
/* serializes ["Hello", "MessagePack"]. */
9090
msgpack_pack_array(pk, 2);
91-
msgpack_pack_raw(pk, 5);
92-
msgpack_pack_raw_body(pk, "Hello", 5);
93-
msgpack_pack_raw(pk, 11);
94-
msgpack_pack_raw_body(pk, "MessagePack", 11);
91+
msgpack_pack_bin(pk, 5);
92+
msgpack_pack_bin_body(pk, "Hello", 5);
93+
msgpack_pack_bin(pk, 11);
94+
msgpack_pack_bin_body(pk, "MessagePack", 11);
9595

9696
/* deserializes it. */
9797
msgpack_unpacked msg;
@@ -119,7 +119,7 @@ int main(void) {
119119
/* creates buffer and serializer instance. */
120120
msgpack_sbuffer* buffer = msgpack_sbuffer_new();
121121
msgpack_packer* pk = msgpack_packer_new(buffer, msgpack_sbuffer_write);
122-
122+
123123
int j;
124124
125125
for(j = 0; j<23; j++) {
@@ -128,10 +128,10 @@ int main(void) {
128128
129129
/* serializes ["Hello", "MessagePack"]. */
130130
msgpack_pack_array(pk, 3);
131-
msgpack_pack_raw(pk, 5);
132-
msgpack_pack_raw_body(pk, "Hello", 5);
133-
msgpack_pack_raw(pk, 11);
134-
msgpack_pack_raw_body(pk, "MessagePack", 11);
131+
msgpack_pack_bin(pk, 5);
132+
msgpack_pack_bin_body(pk, "Hello", 5);
133+
msgpack_pack_bin(pk, 11);
134+
msgpack_pack_bin_body(pk, "MessagePack", 11);
135135
msgpack_pack_int(pk, j);
136136
137137
/* deserializes it. */

0 commit comments

Comments
 (0)