Lines Matching refs:circbuffer
36 typedef struct circbuf circbuffer; typedef
38 circbuffer * cbuf_new(unsigned int size);
39 void cbuf_free(circbuffer * cbuf);
41 unsigned int cbuf_getused(circbuffer * cbuf); /* how much data stored */
42 unsigned int cbuf_getavail(circbuffer * cbuf); /* how much we can write */
43 unsigned int cbuf_readlen(circbuffer *cbuf); /* max linear read len */
44 unsigned int cbuf_writelen(circbuffer *cbuf); /* max linear write len */
46 unsigned char* cbuf_readptr(circbuffer *cbuf, unsigned int len);
47 unsigned char* cbuf_writeptr(circbuffer *cbuf, unsigned int len);
48 void cbuf_incrwrite(circbuffer *cbuf, unsigned int len);
49 void cbuf_incrread(circbuffer *cbuf, unsigned int len);