Lines Matching defs:VBUF
17 * The VBUF buffer is defined by 1) its structure, by 2) the VBUF_GET() and
23 * The VBUF buffer does not specify primitives for memory allocation or
34 typedef struct VBUF VBUF;
35 typedef int (*VBUF_GET_READY_FN) (VBUF *);
36 typedef int (*VBUF_PUT_READY_FN) (VBUF *);
37 typedef int (*VBUF_SPACE_FN) (VBUF *, ssize_t);
39 struct VBUF {
51 * Typically, an application will embed a VBUF structure into a larger
54 * generic VBUF primitives for reading and writing VBUFs. The macro below
55 * transforms a pointer from VBUF structure to the structure that contains
95 extern int vbuf_get(VBUF *);
96 extern int vbuf_put(VBUF *, int);
97 extern int vbuf_unget(VBUF *, int);
98 extern ssize_t vbuf_read(VBUF *, void *, ssize_t);
99 extern ssize_t vbuf_write(VBUF *, const void *, ssize_t);