mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
lang/c/msgpack: divide pack_raw() into pack_raw() and pack_raw_body()
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@74 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
parent
921b0ff62e
commit
1ad04b22d8
9 changed files with 28 additions and 139 deletions
|
|
@ -257,7 +257,7 @@ zone* unpacker::release_zone()
|
|||
throw;
|
||||
}
|
||||
}
|
||||
m_ctx->user(&*m_zone);
|
||||
m_ctx->user(m_zone.get());
|
||||
return old.release();
|
||||
}
|
||||
|
||||
|
|
@ -268,7 +268,7 @@ object unpacker::data()
|
|||
|
||||
void unpacker::reset()
|
||||
{
|
||||
if(m_off != 0) { std::auto_ptr<zone> old(release_zone()); }
|
||||
if(m_off != 0) { delete release_zone(); }
|
||||
m_ctx->reset();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue