Data Structures | |
| struct | ibuf |
| Input specific buffer. More... | |
Defines | |
| #define | ibuf_close(in) iobuf_close(&((in)->io)) |
| #define | ibuf_closed(in) iobuf_closed(&((in)->io)) |
| #define | ibuf_error(in) iobuf_error(&((in)->io)) |
| #define | ibuf_timedout(in) iobuf_timedout(&((in)->io)) |
| #define | ibuf_rewind(in) ibuf_seek(in,0) |
| #define | ibuf_seekfwd(in, off) ibuf_seek(ibuf_tell(in)+(offset)) |
Typedefs | |
| typedef int(* | ibuf_fn )(int, void *, unsigned long) |
| typedef ibuf | ibuf |
Functions | |
| int | ibuf_init (ibuf *in, int fd, ibuf_fn fn, unsigned flags, unsigned bufsize) |
| int | ibuf_open (ibuf *in, const char *filename, unsigned bufsize) |
| int | ibuf_eof (ibuf *in) |
| int | ibuf_refill (ibuf *in) |
| int | ibuf_read_large (ibuf *in, char *data, unsigned datalen) |
| int | ibuf_read (ibuf *in, char *data, unsigned datalen) |
| unsigned | ibuf_tell (ibuf *in) |
| int | ibuf_seek (ibuf *in, unsigned offset) |
| int | ibuf_peek (ibuf *in, char *ch) |
| int | ibuf_getc (ibuf *in, char *ch) |
| int | ibuf_getu (ibuf *in, unsigned long *data) |
| int | ibuf_gets (ibuf *in, char *data, unsigned datalen, char boundary) |
| int | ibuf_getstr (ibuf *in, struct str *s, char boundary) |
| int | ibuf_getstr_crlf (ibuf *in, struct str *s) |
| int | ibuf_getnetstring (ibuf *in, struct str *s) |
| int | ibuf_readall (ibuf *in, struct str *s) |
| int | ibuf_openreadclose (const char *filename, struct str *s) |
Variables | |
| ibuf | inbuf |
0 (false) otherwise.
|
|
Close the
|
|
|
Test if the
|
|
|
Test if the
|
|
|
Set the effective read position to the start of the file.
|
|
|
Set the effective read position
|
|
|
Test if the last
|
|
|
Input specific buffer typedef.
|
|
|
|
|
|
Test if the
|
|
||||||||||||
|
Retrieve a single character from the
|
|
||||||||||||
|
Read a netstring from the given
If the input is not a netstring, |
|
||||||||||||||||||||
|
Read a line from the
|
|
||||||||||||||||
|
Read a line from the
|
|
||||||||||||
|
Read a line from the
|
|
||||||||||||
|
Read an unsigned long from the
|
|
||||||||||||||||||||||||
|
Initialize an
|
|
||||||||||||||||
|
Initialize an
|
|
||||||||||||
|
Open and read the entire file into the
|
|
||||||||||||
|
Retrieve the next character in the
|
|
||||||||||||||||
|
Read a block of data from the Returns true only if the entire block was read. If the return value is false, the caller will need to check if a partial block was read. |
|
||||||||||||||||
|
Read a block of data from the
This routine differs from |
|
||||||||||||
|
Read the remainder of the
|
|
|
(Re)fill the buffer from the file descriptor.
|
|
||||||||||||
|
Set the effective read position.
|
|
|
Look up the current effective read position.
|
|
|
Input buffer for
|
1.4.4