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