mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 10:19:51 +00:00
cpp: add sbuffer::clear() and vrefbuffer::clear()
This commit is contained in:
parent
dbebe9771b
commit
fc7da17fa2
6 changed files with 61 additions and 0 deletions
|
|
@ -72,6 +72,11 @@ public:
|
|||
return msgpack_sbuffer_release(this);
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
msgpack_sbuffer_clear(this);
|
||||
}
|
||||
|
||||
private:
|
||||
void expand_buffer(size_t len)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue