Go to the source code of this file.
Defines | |
#define | IO_WBUF_AVAIL(io) (io->wbsz - io->wcount) |
#define | IO_WBUF_FULL(io) (io->wbsz == io->wcount) |
Enumerations | |
enum | { IO_RD_BUFSZ = 4096, IO_WR_BUFSZ = 4096 } |
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 24 of file io.c. Referenced by io_write(). |
|
Definition at line 25 of file io.c. Referenced by io_write(). |
|
|