Simple data structures / objects in plain C Snapshot
Classes | Typedefs | Functions
dbuf.h File Reference
#include <cutils/base.h>

Go to the source code of this file.

Classes

struct  tagDBUF

Typedefs

typedef struct tagDBUF DBUF

Functions

M_INLINE int DBUF_init (DBUF *buf, size_t init_size)
 initialise a buffer
M_INLINE void DBUF_reset (DBUF *buf)
M_INLINE void DBUF_free (DBUF *buf)
 free memory owned by a buffer
int DBUF_add (DBUF *buf, void *data, size_t data_size)
 add stuff to a buffer
M_INLINE void * DBUF_buffer (DBUF *buf)
M_INLINE size_t DBUF_size (DBUF *buf)