4 typedef struct buffer_t {
11 extern void buffer_compact(buffer_t *buffer, uint32_t maxsize);
12 extern char *buffer_prepare(buffer_t *buffer, uint32_t size);
13 extern void buffer_add(buffer_t *buffer, const char *data, uint32_t size);
14 extern char *buffer_readline(buffer_t *buffer);
15 extern char *buffer_read(buffer_t *buffer, uint32_t size);
16 extern void buffer_clear(buffer_t *buffer);