Takatoshi Kondo
0bc4b3f599
Added the C++11 std::array support.
...
std::array<char, N> is mapped to BIN. That is the same mannar as std::vector.
2014-08-10 23:06:30 +09:00
Takatoshi Kondo
0201c21b9a
Added minimum copy/reference threshold.
...
Even if ref_size is given on vrefbuffer's constructor, the minimum size of vrefbuffer::ref_buffer is 10.
Because int64, uint64, and double's msgpack expression size equals 9, and those buffer is allocated on the stack internally.
2014-08-08 14:28:03 +09:00
Takatoshi Kondo
17e696fc0d
Removed redundant memory allocation from zone.
...
Removed zone::create and zone::destroy.
We can use zone as follows:
zone z; // on stack
zone* z = new zone; // on heap
Fixed a resource leak when zone::push_finalizer(msgpack::unique_ptr<T>) is called.
2014-08-07 15:23:34 +09:00
Takatoshi Kondo
421aeb5021
Fixed missing copy operation for zone.hpp
2014-07-24 23:49:35 +09:00
Takatoshi Kondo
47f4ffe9f3
Added cpp11 include files to install files.
...
Sorted C++ install files to avoid overlooking.
2014-07-24 10:54:54 +09:00
Takatoshi Kondo
bfa428ab13
Added cpp_config.hpp to install files.
2014-07-24 07:52:20 +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
aa79fc2ff4
Updated versions.
2014-07-12 00:33:06 +09:00
Takatoshi Kondo
b0df21295c
Untabified.
...
Adjust line break positions.
2014-07-12 00:17:31 +09:00
Takatoshi Kondo
bc33317b7e
Reorganized tree.
2014-07-07 16:31:29 +09:00
Takatoshi Kondo
754b1682a5
Replaced C-style casts with C++ style casts.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
cb9eed8ccc
Renamed from ct to container_type.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
862905742f
Renamed z with zone.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
ba98315f65
The same fix as follows on C++ code.
...
https://github.com/msgpack/msgpack-c/pull/38
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
124a871923
Removed redundant parameter.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
378f6afccd
Mapped std::stirng to STR instead of BIN for benchmark.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
1320863cb3
Replaced function arguments with data members.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
038c3e3518
Replaced unsigned int to size_t.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
c08439ff41
Added STR to std::string conversion.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
59d994ea5f
Define nullptr macro only if it is not previously defined.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
723d900098
Added 'template' keyword.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
13404a7444
Supported placement new.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
beebccd323
Renamed zone::malloc familiy functions.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
d70c44b723
Added bin and str families support.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
33d3192ca2
Added static_cast to char.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
293c839a22
Supported 'plain' char.
...
msgpack used to only support signed char and unsigned char.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
e2026c0507
Renamed the classes named template_*.
...
Removed template_ from them because they are no longer template.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
c375e14705
Renamed a member function name from setObj to set_obj.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
5fedaf285b
Removed C-style casts.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
fe82444db1
Replaced NULL with nullptr.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
f7692691ca
Removed local variables top, cs, and user and access directly member variables top_, cs_, and user_.
...
The local variable trail is preserved to suppourt register optimization.
Other variables don't contribute increasing speed even though they are on registers.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
7fba3484c5
Renamed template callback functions.
...
Moved aggregate unpacking and pushing procedure to the function push_aggregate.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
561b6b583d
Modified data members initialize sequence to fix a warning.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
7675c15fa9
Added a comment.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
99971abc9b
Cleaned up template_context::execute().
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
b7a1ba9ba0
Modified the offset parameter of template_context::execute() from pointer to reference.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
63c26cd58b
Modified return type from bool to void in functions that always return true.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
f8fc03b482
Modified template functions' return value from int to bool.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
b0b1a0e9a7
Removed template_callback_root.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
4d2a9c23af
Added inline keyword.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
c41154989a
Used the reference version of convert instead of pointer version.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
541ece13c0
Added inline for constructors and a destructor.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
b6b2ef5e57
Removed the last comma at enum definitions to support C++03 strictly.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
9bd339baf8
Restored pointer based interfaces to maintain compatibility.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
616be1aa60
Modified type classes' interfaces parameters 'object' from passed by value to passed by reference.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
415b14335f
Modified the parameter of object::convert() from pointer to reference.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
1fb707f93f
Renamed functions from pack_real_* to pack_imp_*.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
aa4ed82b66
Replaced TAKE8_* macros with inline function named take8_*.
...
Modified byte stream using char instead of unsigned char.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
7ce8abe5d6
Tabified.
...
Indent adjusted.
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