#include <sys/types.h>
Go to the source code of this file.
|
#define | BUFFER_INIT(op, fd, buf, len) { (buf), 0, (len), (fd), (op) } |
|
#define | BUFFER_SMALL 256 |
|
#define | BUFFER_INSIZE 8192 |
|
#define | BUFFER_OUTSIZE 8192 |
|
#define | BUFFER_MTUSIZE 1450 |
|
#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 *, ssize_t(*op)(), int, char *, size_t) |
|
int | buffer_flush (buffer *) |
|
int | buffer_put (buffer *, const char *, size_t) |
|
int | buffer_putalign (buffer *, const char *, size_t) |
|
int | buffer_putflush (buffer *, const char *, size_t) |
|
int | buffer_puts (buffer *, const char *) |
|
int | buffer_putsalign (buffer *, const char *) |
|
int | buffer_putsflush (buffer *, const char *) |
|
int | buffer_get (buffer *, char *, size_t) |
|
int | buffer_bget (buffer *, char *, size_t) |
|
int | buffer_feed (buffer *) |
|
char * | buffer_peek (buffer *) |
|
void | buffer_seek (buffer *, size_t) |
|
int | buffer_copy (buffer *, buffer *) |
|
ssize_t | buffer_unixread (int, char *, size_t) |
|
ssize_t | buffer_unixwrite (int, char *, size_t) |
|
◆ buffer_GETC
#define buffer_GETC |
( |
|
s, |
|
|
|
c |
|
) |
| |
Value: ( ((s)->p > 0) \
)
int buffer_get(buffer *, char *, size_t)
#define buffer_SEEK(s, len)
Definition at line 45 of file buffer.h.
◆ BUFFER_INIT
#define BUFFER_INIT |
( |
|
op, |
|
|
|
fd, |
|
|
|
buf, |
|
|
|
len |
|
) |
| { (buf), 0, (len), (fd), (op) } |
◆ BUFFER_INSIZE
#define BUFFER_INSIZE 8192 |
◆ BUFFER_MTUSIZE
#define BUFFER_MTUSIZE 1450 |
◆ 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)->n != (s)->p) \
? ( (s)->x[(s)->p++] = (c), 0 ) \
)
int buffer_put(buffer *, const char *, size_t)
Definition at line 29 of file buffer.h.
◆ buffer_SEEK
#define buffer_SEEK |
( |
|
s, |
|
|
|
len |
|
) |
| ( ( (s)->p -= (len) ) , ( (s)->n += (len) ) ) |
◆ BUFFER_SMALL
◆ buffer
◆ buffer_bget()
int buffer_bget |
( |
buffer * |
s, |
|
|
char * |
buf, |
|
|
size_t |
len |
|
) |
| |
◆ buffer_copy()
◆ buffer_feed()
◆ buffer_flush()
int buffer_flush |
( |
buffer * |
s | ) |
|
◆ buffer_get()
int buffer_get |
( |
buffer * |
s, |
|
|
char * |
buf, |
|
|
size_t |
len |
|
) |
| |
◆ buffer_init()
void buffer_init |
( |
buffer * |
s, |
|
|
ssize_t(*)() |
op, |
|
|
int |
fd, |
|
|
char * |
buf, |
|
|
size_t |
len |
|
) |
| |
◆ buffer_peek()
char * buffer_peek |
( |
buffer * |
s | ) |
|
◆ buffer_put()
int buffer_put |
( |
buffer * |
s, |
|
|
const char * |
buf, |
|
|
size_t |
len |
|
) |
| |
◆ buffer_putalign()
int buffer_putalign |
( |
buffer * |
s, |
|
|
const char * |
buf, |
|
|
size_t |
len |
|
) |
| |
◆ buffer_putflush()
int buffer_putflush |
( |
buffer * |
s, |
|
|
const char * |
buf, |
|
|
size_t |
len |
|
) |
| |
◆ buffer_puts()
int buffer_puts |
( |
buffer * |
s, |
|
|
const char * |
buf |
|
) |
| |
◆ buffer_putsalign()
int buffer_putsalign |
( |
buffer * |
s, |
|
|
const char * |
buf |
|
) |
| |
◆ buffer_putsflush()
int buffer_putsflush |
( |
buffer * |
s, |
|
|
const char * |
buf |
|
) |
| |
◆ buffer_seek()
void buffer_seek |
( |
buffer * |
s, |
|
|
size_t |
len |
|
) |
| |
◆ buffer_unixread()
ssize_t buffer_unixread |
( |
int |
fd, |
|
|
char * |
buf, |
|
|
size_t |
len |
|
) |
| |
◆ buffer_unixwrite()
ssize_t buffer_unixwrite |
( |
int |
fd, |
|
|
char * |
buf, |
|
|
size_t |
len |
|
) |
| |
◆ buffer_0
◆ buffer_0small
◆ buffer_1
◆ buffer_1small
◆ buffer_2
◆ buffer_2small