22 #ifndef __CCL_BUFFER_H__
23 # define __CCL_BUFFER_H__
30 typedef struct ccl_buffer_st ccl_buffer;
31 typedef CCL_ARRAY (int8_t) ccl_buffer_content;
34 ccl_buffer_create (
void);
37 ccl_buffer_add_reference (ccl_buffer *buf);
40 ccl_buffer_del_reference (ccl_buffer *buf);
43 ccl_buffer_get_content_size (ccl_buffer *buf);
46 ccl_buffer_append (ccl_buffer *buf,
void *data,
size_t datasize);
49 ccl_buffer_reset (ccl_buffer *buf);
52 ccl_buffer_get_content (ccl_buffer *buf, ccl_buffer_content *pcontent);
#define CCL_ARRAY(_t_)
Macro to define an array of objects of type t
Some useful and common macros.
A kind of template for dynamic arrays.