Main Page | Modules | Data Structures | File List | Data Fields

buf.h

00001 #ifndef _U_LIBU_BUF_H_
00002 #define _U_LIBU_BUF_H_
00003 #include <stdlib.h>
00004 #include <unistd.h>
00005 
00006 struct u_buf_s;
00007 typedef struct u_buf_s u_buf_t;
00008 
00009 int u_buf_append(u_buf_t *buf, void *data, size_t size);
00010 int u_buf_clear(u_buf_t *buf);
00011 int u_buf_detach(u_buf_t *buf);
00012 int u_buf_set(u_buf_t *buf, void *data, size_t size);
00013 int u_buf_load(u_buf_t *buf, char *fqn);
00014 int u_buf_free(u_buf_t *buf);
00015 int u_buf_create(u_buf_t **pbuf);
00016 int u_buf_reserve(u_buf_t *buf, size_t size);
00017 void* u_buf_ptr(u_buf_t *buf);
00018 size_t u_buf_len(u_buf_t *buf);
00019 size_t u_buf_size(u_buf_t *buf);
00020 
00021 #endif

←Products
© 2005-2006 - KoanLogic S.r.l. - All rights reserved