void * ws_calloc(size_t num, size_t size)
WsStream * ws_stream_new_data_input(const unsigned char *data, size_t data_len)
WsStream * ws_stream_new(void *context, WsStreamIOProc io, WsStreamFlushProc flush, WsStreamCloseProc close)
static size_t data_input(void *context, WsUInt32 *buf, size_t buflen)
static void data_close(void *context)