summaryrefslogtreecommitdiff
path: root/cpp/msgpack/vrefbuffer.h
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@users.sourceforge.jp>2010-05-25 02:57:37 +0900
committerfrsyuki <frsyuki@users.sourceforge.jp>2010-05-25 02:57:37 +0900
commitfc7da17fa2dbdc6385ad95f6848ee59598164440 (patch)
tree40f4d554925f7e6624a14d9adf5c860ee8717b99 /cpp/msgpack/vrefbuffer.h
parentdbebe9771b276bd286b2ccdb8ac88dd17a83524c (diff)
downloadmsgpack-python-fc7da17fa2dbdc6385ad95f6848ee59598164440.tar.gz
cpp: add sbuffer::clear() and vrefbuffer::clear()
Diffstat (limited to 'cpp/msgpack/vrefbuffer.h')
-rw-r--r--cpp/msgpack/vrefbuffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/msgpack/vrefbuffer.h b/cpp/msgpack/vrefbuffer.h
index 38ead67..a08e0d0 100644
--- a/cpp/msgpack/vrefbuffer.h
+++ b/cpp/msgpack/vrefbuffer.h
@@ -80,6 +80,9 @@ int msgpack_vrefbuffer_append_ref(msgpack_vrefbuffer* vbuf,
int msgpack_vrefbuffer_migrate(msgpack_vrefbuffer* vbuf, msgpack_vrefbuffer* to);
+void msgpack_vrefbuffer_clear(msgpack_vrefbuffer* vref);
+
+
int msgpack_vrefbuffer_write(void* data, const char* buf, unsigned int len)
{
msgpack_vrefbuffer* vbuf = (msgpack_vrefbuffer*)data;