Functions | |
ssize_t | io_pipe (io_t *out, io_t *in) |
Write the input stream to the output stream. | |
int | io_dup (io_t *io, io_t **pio) |
Duplicate an IO handle. | |
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_seek (io_t *io, size_t off) |
Seek to the given position. | |
ssize_t | io_tell (io_t *io) |
Return the current file position. | |
int | io_free (io_t *io) |
Free an io_t object. | |
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_printf (io_t *io, const char *fmt,...) |
Write a string to io using printf-style format strings. | |
ssize_t | io_flush (io_t *io) |
Flush the write buffer. | |
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. | |
ssize_t | io_getc (io_t *io, char *pc) |
Read a char 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. | |
int | io_codec_add_head (io_t *io, codec_t *c) |
Insert a codec at the head the codec chain. | |
int | io_codec_add_tail (io_t *io, codec_t *c) |
Append a codec to the codec chain. | |
int | io_codecs_remove (io_t *io) |
Flush, remove and free all codecs in the codec chain. | |
int | io_name_set (io_t *io, const char *name) |
Set the name of an io_t object. | |
int | io_name_get (io_t *io, char *name, size_t sz) |
Return the name of the given io_t object. | |
int | io_is_secure (io_t *io) |
int | io_prv_create (size_t dev_sz, io_t **pio) |
|
Definition at line 815 of file io.c. References io_s::codec_chain, codec_t, and io_t. |
|
Definition at line 834 of file io.c. References io_s::codec_chain, codec_t, and io_t. Referenced by emb_open(), session_prv_load_from_io(), session_prv_save_to_io(), and translate(). |
|
Definition at line 852 of file io.c. References io_s::codec_chain, codec_free(), codec_t, io_t, and io_s::wbuf. Referenced by io_free(), session_prv_load_from_io(), session_prv_save_to_buf(), and session_prv_save_to_io(). |
|
Read from
Definition at line 117 of file io.c. References io_read(), io_t, io_write(), and MIN. |
|
Create a copy of
Definition at line 92 of file io.c. References io_t, and io_s::refcnt. |
|
Force a write of all buffered data to the output device.
Definition at line 622 of file io.c. References io_t, io_s::wbuf, io_s::wcount, and io_s::write. Referenced by io_free(), io_seek(), io_tell(), and io_write(). |
|
Free the given
Definition at line 427 of file io.c. References io_codecs_remove(), io_flush(), io_t, io_s::name, io_s::rbuf, io_s::refcnt, io_s::term, io_s::ubuf, and io_s::wbuf. Referenced by app_init(), io_fd_create(), io_mem_create(), io_ssl_create(), request_free(), response_free(), session_prv_load_from_buf(), session_prv_save_to_buf(), translate(), and u_tmpfile_open(). |
|
Read a char from the
Definition at line 712 of file io.c. References io_read(), and io_t. Referenced by translate_opaque_to_c(). |
|
Read a line from
Definition at line 747 of file io.c. References io_t, MIN, io_s::rbuf, io_s::rcount, and io_s::roff. Referenced by request_parse_header(), and u_getline(). |
|
Definition at line 945 of file io.c. References io_t, and io_s::is_secure. |
|
Save in
Definition at line 916 of file io.c. References io_t, MIN, and io_s::name. Referenced by translate(). |
|
Set the name of the given
Definition at line 886 of file io.c. References io_t, and io_s::name. Referenced by u_file_open(), and u_tmpfile_open(). |
|
Read all data from
Definition at line 48 of file io.c. References io_read(), io_t, and io_write(). |
|
Printf-like function used to easily write strings to
Definition at line 572 of file io.c. References io_t, and io_write(). Referenced by response_print_header_to_io(), session_prv_save_var(), translate_opaque_to_c(), and u_printf_ccstr(). |
|
Definition at line 957 of file io.c. References io_s::codec_chain, io_t, io_s::refcnt, and io_s::size. |
|
Write the character
Definition at line 697 of file io.c. References io_t, and io_write(). Referenced by u_printf_ccstr(). |
|
Read
Definition at line 525 of file io.c. References io_s::eof, io_t, MIN, io_s::rbuf, io_s::rcount, and io_s::roff. Referenced by io_copy(), io_getc(), io_pipe(), and u_md5io(). |
|
Moves the read/write file offset so that the next read or the next write will start at the given position. Note that not all
Definition at line 159 of file io.c. References io_flush(), io_t, and io_s::seek. Referenced by translate(). |
|
Return the current file position. There exists a unique read and write position offset.
Definition at line 180 of file io.c. References io_flush(), io_t, and io_s::tell. Referenced by session_prv_save_to_buf(). |
|
Write
Definition at line 656 of file io.c. References io_flush(), io_t, IO_WBUF_AVAIL, IO_WBUF_FULL, io_s::wbuf, and io_s::wcount. Referenced by io_copy(), io_pipe(), io_printf(), and io_putc(). |