From 7e758ca05339bb773088c8640e13584dbba8c936 Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Thu, 9 Nov 2017 10:40:15 +0900 Subject: [PATCH] Fixed #642. Fixed documentation. --- include/msgpack/v1/unpack.hpp | 1 - include/msgpack/v2/parse.hpp | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/msgpack/v1/unpack.hpp b/include/msgpack/v1/unpack.hpp index c7bf5996..74836bd3 100644 --- a/include/msgpack/v1/unpack.hpp +++ b/include/msgpack/v1/unpack.hpp @@ -848,7 +848,6 @@ class unpacker { public: /// Constructor /** - * @param referenced If the unpacked object contains reference of the buffer, then set as true, otherwise false. * @param f A judging function that msgpack::object refer to the buffer. * @param user_data This parameter is passed to f. * @param initial_buffer_size The memory size to allocate when unpacker is constructed. diff --git a/include/msgpack/v2/parse.hpp b/include/msgpack/v2/parse.hpp index 2b512c12..345dc80c 100644 --- a/include/msgpack/v2/parse.hpp +++ b/include/msgpack/v2/parse.hpp @@ -621,11 +621,11 @@ class parser : public detail::context { public: /// Constructor /** - * @param referenced If the unpacked object contains reference of the buffer, then set as true, otherwise false. - * @param f A judging function that msgpack::object refer to the buffer. - * @param user_data This parameter is passed to f. + * @param hook The handler that is called when buffer is allocated internally. + * `hook` should be callable with char* parameter. + * `parser` gives a chance to prepare finalizer. + * See https://github.com/msgpack/msgpack-c/wiki/v2_0_cpp_visitor#parse-api * @param initial_buffer_size The memory size to allocate when unpacker is constructed. - * @param limit The size limit information of msgpack::object. * */ parser(ReferencedBufferHook& hook,