78 #define WS_STREAM_BUFFER_SIZE 1024 WsUInt32 buffer[WS_STREAM_BUFFER_SIZE]
void ws_stream_ungetc(WsStream *stream, WsUInt32 ch)
WsBool ws_stream_flush(WsStream *stream)
#define WS_STREAM_BUFFER_SIZE
WsStream * ws_stream_new(void *context, WsStreamIOProc io, WsStreamFlushProc flush, WsStreamCloseProc close)
WsStream * ws_stream_new_data_input(const unsigned char *data, size_t data_len)
void ws_stream_close(WsStream *stream)
WsBool ws_stream_getc(WsStream *stream, WsUInt32 *ch_return)
size_t(* WsStreamIOProc)(void *context, WsUInt32 *buf, size_t buflen)
WsStream * ws_stream_new_file(FILE *fp, WsBool output, WsBool close)
void(* WsStreamCloseProc)(void *context)
WsBool(* WsStreamFlushProc)(void *context)