Commit Graph

92 Commits

Author SHA1 Message Date
Takatoshi Kondo fa7f840427 Added map based packing and converting example. 2015-07-07 09:55:45 +09:00
Takatoshi Kondo f1504d851a Added an example of the non default constructible class.
Refined an intrusive example. It includes base class serialization. We can switch map based and array based serialization.
2015-07-06 16:01:36 +09:00
Takatoshi Kondo 721700bfe5 Added the new protocol example. 2015-04-06 10:30:43 +09:00
Takatoshi Kondo 35483b95ae Refined examples. 2015-04-02 18:24:19 +09:00
Takatoshi Kondo a2c8154960 Updated examples to support new packing/converting mechanism. 2015-04-02 18:24:10 +09:00
tbeu 8921f9dcfc Do not interleave code and declarations in C files
Avoid C99 style to interleave code and declarations in order to compile msgpackc with Visual Studion < 2013
2015-03-26 21:48:03 +01:00
Takatoshi Kondo 3662a17e81 Merge pull request #212 from redboltz/add_zone_reuse_example
Added an unpacking msgpack::object on an existing zone example.
2015-02-03 21:52:09 +09:00
Takatoshi Kondo 9ed4e443fb Added an unpacking msgpack::object on an existing zone example. 2015-02-03 21:20:34 +09:00
Takatoshi Kondo 15aec0493d Added a C++11 container example. 2015-02-03 20:40:44 +09:00
Takatoshi Kondo 83fac26762 Added enum examples.
Added converting to zone with or without zone.
2015-02-01 22:10:13 +09:00
Takatoshi Kondo 213ba44b65 Added copylight text.
Refined examples.
2015-02-01 21:35:48 +09:00
Nobuyuki Kubota 7eb3d2aa59 Change the type of the return value to a const reference 2014-11-15 17:41:43 -08:00
Takatoshi Kondo e00b299fe0 Refined the non-intrusive example. The target class no longer needs public data members. 2014-11-01 22:42:36 +09:00
Takatoshi Kondo 79e7a9810c Moved examples.
Added intrusive and non-intrusive versions of packing and unpacking examples.
2014-11-01 18:13:52 +09:00
Takatoshi Kondo 111efdf50f Fixed return type. 2014-11-01 13:18:17 +09:00
Takatoshi Kondo 1f5d6b9cac Added EXT support.
Removed obsolete unpack functions.
Updated examples that no longer use obsolete functions.
Added reference checking function to unpacked. ( unpacked::referenced() )
Added std:: namespace.
Added reference or copy choice function and default behavior:
  When you use unpacker, default behavior is:
    STR, BIN, EXT types are always held by reference.
  When you don't use unpacker, default behavior is:
    STR, BIN, EXT types are always held by copy.
    The memory is allocated from zone.
  You can customize the behavior passing your custom judging function to unpack() or unpacker's constructor.
2014-08-06 16:18:37 +09:00
Takatoshi Kondo 0380215982 Fixed https://github.com/msgpack/msgpack-c/issues/88
Added examples for the following updated functions:

msgpack_unpack_return msgpack_unpacker_next(msgpack_unpacker* mpac, msgpack_unpacked* result);

msgpack_unpack_return
msgpack_unpack_next(msgpack_unpacked* result,
        const char* data, size_t len, size_t* off);
2014-07-13 09:35:58 +09:00
Takatoshi Kondo cc571b8bb1 Replaced std::auto_ptr with msgpack::unique_ptr. 2014-07-12 00:21:35 +09:00
Takatoshi Kondo b0df21295c Untabified.
Adjust line break positions.
2014-07-12 00:17:31 +09:00
Takatoshi Kondo d70c44b723 Added bin and str families support. 2014-07-07 16:17:59 +09:00
Takatoshi Kondo f187ae35d9 Added a nested array example. 2014-07-07 16:17:59 +09:00
Takatoshi Kondo 74013e7e7d Added array of array example. 2014-07-07 16:17:59 +09:00
Takatoshi Kondo fade0644c7 Added comments that how to compile and run it. 2014-07-07 16:17:59 +09:00
Takatoshi Kondo 4ef69da25d Restored the test cases using pointer based interfaces.
It assures that we can use the same interfaces as the original version(0.5.6).
To support both C++03 and C++11, I introduced msgpack::unique_ptr and msgpack::move() in test codes.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo 27629a8dd6 Modified 'unpacked' interface using references instead of pointers.
Added speed test for 'unpacked' based unpack() function.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo bad3801eae Modified zone* to zone&. 2014-07-07 16:17:58 +09:00
Takatoshi Kondo 56b0ad6809 Modified passed by value of object to const reference of object.
Modified object pointers to object references.
This modification has increased unpack speed.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo f8561fbfd5 Added map packing speed test. 2014-07-07 16:17:58 +09:00
Takatoshi Kondo e0d1e5c722 Modified tuple's get calling from member function to free function. 2014-07-07 16:16:29 +09:00
Nobuyuki Kubota 28370b36aa Replaced deprecated functions in example/stream.cc 2014-02-07 20:16:51 +09:00
Takatoshi Kondo cb4d851761 Fixed size types based on snej's pull request.
https://github.com/snej/msgpack-c/commit/1784e7a3f3d012e1149adc9b8a3abb3646eb616f
2013-12-22 15:13:48 +00:00
Takatoshi Kondo 229467cb29 Added a test and speed test examples for #37. 2013-12-08 10:39:13 +00:00
FURUHASHI Sadayuki e96e20ccfd make C/C++ implementation independent from other language implementations 2013-01-03 19:08:11 -08:00
frsyuki b4cb5e23c0 fix Makefile.am 2009-08-07 11:28:23 +09:00
frsyuki 1375732c80 add 2009-08-07 11:15:33 +09:00
frsyuki 76f18a0ea6 c: msgpack_sbuffer; cpp: msgpack::sbuffer 2009-03-01 00:59:15 +09:00
frsyuki e7fe3be34d example: limit message size 2009-02-26 01:33:34 +09:00
frsyuki a89dfc70b9 fix msgpack::unpack_return 2009-02-25 18:55:56 +09:00
frsyuki bdd13859b6 c: msgpack_pack_object 2009-02-24 16:37:47 +09:00
frsyuki aaaaecb8ba add example/simple.c 2009-02-24 16:37:01 +09:00
frsyuki 11abec1093 c and c++: rewritten and integrated 2009-02-22 15:14:21 +09:00
frsyuki 7e872371a2 add examples
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@84 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
2009-02-15 09:10:00 +00:00