#include "sysdep.h"
#include <stdlib.h>
#include <string.h>
+#include <assert.h>
#include <zlib.h>
#ifdef __cplusplus
{
msgpack_zbuffer* zbuf = (msgpack_zbuffer*)data;
+ assert(buf || len == 0);
+ if(!buf) return 0;
+
zbuf->stream.next_in = (Bytef*)buf;
zbuf->stream.avail_in = (uInt)len;