Functions | |
ssize_t | io_printf (io_t *io, const char *fmt,...) |
Write a string to io using printf-style format strings. | |
ssize_t | io_write (io_t *io, const char *buf, size_t size) |
Write a block of data to an io_t object. | |
ssize_t | io_putc (io_t *io, char c) |
Write a char to an io_t object. | |
int | io_is_secure (io_t *io) |
ssize_t | io_flush (io_t *io) |
Flush the write buffer. | |
ssize_t | io_read (io_t *io, char *buf, size_t size) |
Read a block of data from an io_t object. | |
ssize_t | io_gets (io_t *io, char *buf, size_t size) |
Read a line from an io_t object. | |
ssize_t | io_get_until (io_t *io, char stop_at, char *buf, size_t size) |
Read a chunk of data until the given character is found. | |
ssize_t | io_getc (io_t *io, char *c) |
Read a char from an io_t object. | |
ssize_t | io_copy (io_t *out, io_t *in, size_t size) |
Copy a block of data between two io_t objects. | |
ssize_t | io_pipe (io_t *out, io_t *in) |
Write the input stream to the output stream. | |
int | io_codec_add_head (io_t *io, codec_t *codec) |
Insert a codec at the head the codec chain. | |
int | io_codec_add_tail (io_t *io, codec_t *codec) |
Append a codec to the codec chain. | |
int | io_codecs_remove (io_t *io) |
Flush, remove and free all codecs in the codec chain. | |
enum io_type_e | io_type (io_t *io) |
Returns the type of the given io. |
|
Printf-like function used to easily write strings to
Definition at line 641 of file io.c. References io_write(). |
|
Write
Definition at line 725 of file io.c. References io_flush(), io_s::wbuf, and io_s::wcount. Referenced by io_copy(), io_pipe(), io_printf(), and io_putc(). |
|
Write the character
Definition at line 766 of file io.c. References io_write(). |
|
Force a write of all buffered data to the output device.
Definition at line 691 of file io.c. References io_s::wbuf, io_s::wcount, and io_s::write. Referenced by io_write(). |
|
Read
Definition at line 594 of file io.c. References io_s::eof, io_s::rbuf, io_s::rcount, and io_s::roff. Referenced by io_copy(), io_getc(), io_pipe(), and u_md5io(). |
|
Read a line from
Definition at line 890 of file io.c. References io_get_until(). |
|
Read from
Definition at line 818 of file io.c. References io_s::rbuf, io_s::rcount, and io_s::roff. Referenced by io_gets(). |
|
Read a char from the
Definition at line 781 of file io.c. References io_read(). |
|
Read from
Definition at line 159 of file io.c. References io_read(), and io_write(). |
|
Read all data from
Definition at line 90 of file io.c. References io_read(), and io_write(). |
|
Definition at line 903 of file io.c. References io_s::codec_chain. |
|
Definition at line 922 of file io.c. References io_s::codec_chain. |
|
Definition at line 940 of file io.c. References io_s::codec_chain, and io_s::wbuf. |
|
Return the type of the given io (see enum io_type_e).
Definition at line 73 of file io.c. References io_s::type. |