diff options
| author | frsyuki <frsyuki@users.sourceforge.jp> | 2010-05-25 02:57:37 +0900 |
|---|---|---|
| committer | frsyuki <frsyuki@users.sourceforge.jp> | 2010-05-25 02:57:37 +0900 |
| commit | fc7da17fa2dbdc6385ad95f6848ee59598164440 (patch) | |
| tree | 40f4d554925f7e6624a14d9adf5c860ee8717b99 /cpp/msgpack/sbuffer.h | |
| parent | dbebe9771b276bd286b2ccdb8ac88dd17a83524c (diff) | |
| download | msgpack-python-fc7da17fa2dbdc6385ad95f6848ee59598164440.tar.gz | |
cpp: add sbuffer::clear() and vrefbuffer::clear()
Diffstat (limited to 'cpp/msgpack/sbuffer.h')
| -rw-r--r-- | cpp/msgpack/sbuffer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/msgpack/sbuffer.h b/cpp/msgpack/sbuffer.h index bc0a8fd..57f424a 100644 --- a/cpp/msgpack/sbuffer.h +++ b/cpp/msgpack/sbuffer.h @@ -77,6 +77,10 @@ static inline char* msgpack_sbuffer_release(msgpack_sbuffer* sbuf) return tmp; } +static inline void msgpack_sbuffer_clear(msgpack_sbuffer* sbuf) +{ + sbuf->size = 0; +} #ifdef __cplusplus } |
