cpp: add sbuffer::clear() and vrefbuffer::clear()

This commit is contained in:
frsyuki 2010-05-25 02:57:37 +09:00
parent dbebe9771b
commit fc7da17fa2
6 changed files with 61 additions and 0 deletions

View file

@ -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
}