Go to the source code of this file.
|
#define | BUFFER_INIT(op, fd, buf, len) { (buf), 0, (len), (fd), (op) } |
|
#define | BUFFER_INSIZE 8192 |
|
#define | BUFFER_OUTSIZE 8192 |
|
#define | buffer_PUTC(s, c) |
|
#define | buffer_PEEK(s) ((s)->x + (s)->n) |
|
#define | buffer_SEEK(s, len) (((s)->p -= (len)), ((s)->n += (len))) |
|
#define | buffer_GETC(s, c) |
|
|
void | buffer_init (buffer *, BufferOp, int, char *, unsigned int) |
|
int | buffer_flush (buffer *) |
|
int | buffer_put (buffer *, const char *, unsigned int) |
|
int | buffer_putalign (buffer *, const char *, unsigned int) |
|
int | buffer_putflush (buffer *, const char *, unsigned int) |
|
int | buffer_get (buffer *, char *, unsigned int) |
|
int | buffer_bget (buffer *, char *, unsigned int) |
|
int | buffer_feed (buffer *) |
|
char * | buffer_peek (buffer *) |
|
void | buffer_seek (buffer *, unsigned int) |
|
int | buffer_copy (buffer *, buffer *) |
|
◆ buffer_GETC
#define buffer_GETC |
( |
|
s, |
|
|
|
c |
|
) |
| |
Value:
int buffer_get(buffer *, char *, unsigned int)
#define buffer_SEEK(s, len)
Definition at line 50 of file buffer.h.
◆ BUFFER_INIT
◆ BUFFER_INSIZE
#define BUFFER_INSIZE 8192 |
◆ BUFFER_OUTSIZE
#define BUFFER_OUTSIZE 8192 |
◆ buffer_PEEK
#define buffer_PEEK |
( |
|
s | ) |
((s)->x + (s)->n) |
◆ buffer_PUTC
#define buffer_PUTC |
( |
|
s, |
|
|
|
c |
|
) |
| |
Value:
? ((
s)->x[(
s)->
p++] = (
c), 0) \
int buffer_put(buffer *, const char *, unsigned int)
Definition at line 35 of file buffer.h.
◆ buffer_SEEK
◆ buffer
◆ BufferOp
◆ buffer_bget()
◆ buffer_copy()
◆ buffer_feed()
◆ buffer_flush()
◆ buffer_get()
◆ buffer_init()
◆ buffer_peek()
char* buffer_peek |
( |
buffer * |
| ) |
|
◆ buffer_put()
◆ buffer_putalign()
Definition at line 36 of file buffer.c.
38 if (!
s || !
s->x || !
buf) {
41 while (
len > (
n =
s->n -
s->p)) {
int buffer_flush(buffer *s)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
References buffer_flush(), len, memcpy(), n, and s.
Referenced by cdb_make_add(), cdb_make_addbegin(), and cdb_make_finish().
◆ buffer_putflush()
◆ buffer_seek()
◆ buffer_0
◆ buffer_0small
◆ buffer_1
◆ buffer_1small
◆ buffer_2