mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 10:19:51 +00:00
lang/c/msgpack: fix types
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@63 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
parent
a0a798d79e
commit
1278eb3c63
17 changed files with 85 additions and 71 deletions
|
|
@ -4,7 +4,7 @@
|
|||
//#include <msgpack/pack.hpp>
|
||||
#include <msgpack.hpp>
|
||||
#include <sstream>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <memory>
|
||||
|
||||
class checker {
|
||||
public:
|
||||
|
|
@ -176,7 +176,7 @@ int main(void)
|
|||
|
||||
// 2. read data to buffer() up to buffer_capacity() bytes
|
||||
size_t sz = stream.readsome(
|
||||
(char*)upk.buffer(),
|
||||
upk.buffer(),
|
||||
upk.buffer_capacity());
|
||||
|
||||
total_bytes -= sz;
|
||||
|
|
@ -195,7 +195,7 @@ int main(void)
|
|||
msgpack::object o = upk.data();
|
||||
|
||||
// 5.2. the parsed object is valid until the zone is deleted
|
||||
boost::scoped_ptr<msgpack::zone> pz(upk.release_zone());
|
||||
std::auto_ptr<msgpack::zone> pz(upk.release_zone());
|
||||
|
||||
std::cout << o << std::endl;
|
||||
++num_msg;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue