14#include "ws_symbol_export.h"
20#define SOME_FUNCTIONS_ARE_DEFINES
34void ws_buffer_assure_space(
Buffer*
buffer,
size_t space);
36void ws_buffer_append(
Buffer*
buffer, uint8_t *from,
size_t bytes);
40void ws_buffer_cleanup(
void);
42#ifdef SOME_FUNCTIONS_ARE_DEFINES
43# define ws_buffer_clean(buffer) ws_buffer_remove_start((buffer), ws_buffer_length(buffer))
44# define ws_buffer_increase_length(buffer,bytes) (buffer)->first_free += (bytes)
45# define ws_buffer_length(buffer) ((buffer)->first_free - (buffer)->start)
46# define ws_buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
47# define ws_buffer_end_ptr(buffer) ((buffer)->data + (buffer)->first_free)
48# define ws_buffer_append_buffer(buffer,src_buffer) ws_buffer_append((buffer), ws_buffer_start_ptr(src_buffer), ws_buffer_length(src_buffer))
53 void ws_buffer_increase_length(
Buffer*
buffer,
size_t bytes);
WS_DLL_PUBLIC void ws_buffer_remove_start(Buffer *buffer, size_t bytes)
Definition buffer.c:113
Definition mcast_stream.h:30