summaryrefslogtreecommitdiff
path: root/cpp/unpack.hpp
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:10:00 +0000
committerfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:10:00 +0000
commite582fa34c7f1246d27cce5a2333e0f954cbed251 (patch)
tree529597afaef7d1399d39f92b2cc8dede7dcf391c /cpp/unpack.hpp
parentc93d45371b2b2a085fa2fe84d6ceb79decf778d2 (diff)
downloadmsgpack-python-e582fa34c7f1246d27cce5a2333e0f954cbed251.tar.gz
c++ binding: improve msgpack::zone, zero-copy stream deserializer
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@92 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
Diffstat (limited to 'cpp/unpack.hpp')
-rw-r--r--cpp/unpack.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/unpack.hpp b/cpp/unpack.hpp
index ac20de3..cba1963 100644
--- a/cpp/unpack.hpp
+++ b/cpp/unpack.hpp
@@ -24,7 +24,8 @@
#include <stdexcept>
#ifndef MSGPACK_UNPACKER_DEFAULT_INITIAL_BUFFER_SIZE
-#define MSGPACK_UNPACKER_DEFAULT_INITIAL_BUFFER_SIZE 8*1024
+#define MSGPACK_UNPACKER_DEFAULT_INITIAL_BUFFER_SIZE 16
+//#define MSGPACK_UNPACKER_DEFAULT_INITIAL_BUFFER_SIZE 8*1024
#endif
namespace msgpack {
@@ -133,10 +134,9 @@ private:
std::auto_ptr<zone> m_zone;
- struct context;
- context* m_ctx;
+ void* m_ctx;
- const size_t m_initial_buffer_size;
+ size_t m_initial_buffer_size;
private:
void expand_buffer(size_t len);