include/internal/data-buffer.h File Reference

Go to the source code of this file.

Data Structures

struct  data_buffer_io_s
struct  data_buffer_t_s

Defines

#define _ABLE_CLIB_INTERNAL_DATABUFFER_H   1
#define DATABUFF_NOTINSERVICE   (1)
#define DATABUF_INIT(parent, buff)   { parent, buff, 0, 0, sizeof(x), 0 }
#define DATABUF_NULL(parent)   { parent, NULL, 0, 0, 0, DATABUFF_NOTINSERVICE }
#define DATABUFFER_EOF   (-1)
#define DATABUFFER_INPUT_ERROR   (-2)
#define DATABUFFER_ISERROR(x)   ((x) < 0)

Typedefs

typedef struct data_buffer_io_s data_buffer_io_t
typedef struct data_buffer_t_s data_buffer_t

Functions

int databuffer_readbyte (data_buffer_t *)
ssize_t databuffer_read (data_buffer_t *, char *to, size_t wanted)
ssize_t databuffer_write (data_buffer_t *, char *to, size_t got)
int databuffer_flush (data_buffer_t *buf)


Define Documentation

#define _ABLE_CLIB_INTERNAL_DATABUFFER_H   1

#define DATABUF_INIT ( parent,
buff   )     { parent, buff, 0, 0, sizeof(x), 0 }

#define DATABUF_NULL ( parent   )     { parent, NULL, 0, 0, 0, DATABUFF_NOTINSERVICE }

#define DATABUFF_NOTINSERVICE   (1)

#define DATABUFFER_EOF   (-1)

#define DATABUFFER_INPUT_ERROR   (-2)

#define DATABUFFER_ISERROR (  )     ((x) < 0)


Typedef Documentation


Function Documentation

int databuffer_flush ( data_buffer_t buf  ) 

ssize_t databuffer_read ( data_buffer_t ,
char *  to,
size_t  wanted 
)

int databuffer_readbyte ( data_buffer_t  ) 

ssize_t databuffer_write ( data_buffer_t ,
char *  to,
size_t  got 
)


Generated on Tue Jan 20 14:28:56 2009 for ABLE LIBC by  doxygen 1.5.6