Functions | |
| enum io_type_e | io_type (io_t *io) |
| ssize_t | io_pipe (io_t *out, io_t *in) |
| int | io_dup (io_t *io, io_t **pio) |
| ssize_t | io_copy (io_t *out, io_t *in, size_t size) |
| ssize_t | io_seek (io_t *io, size_t off) |
| ssize_t | io_tell (io_t *io) |
| int | io_close (io_t *io) |
| int | io_free (io_t *io) |
| ssize_t | io_read (io_t *io, char *buf, size_t size) |
| ssize_t | io_vprintf (io_t *io, const char *fmt, va_list ap) |
| ssize_t | io_printf (io_t *io, const char *fmt,...) |
| ssize_t | io_flush (io_t *io) |
| ssize_t | io_write (io_t *io, const char *buf, size_t size) |
| ssize_t | io_putc (io_t *io, char c) |
| ssize_t | io_getc (io_t *io, char *pc) |
| ssize_t | io_get_until (io_t *io, char stop_at, char *buf, size_t size) |
| ssize_t | io_gets (io_t *io, char *buf, size_t size) |
| int | io_codec_add_head (io_t *io, codec_t *c) |
| int | io_codec_add_tail (io_t *io, codec_t *c) |
| int | io_codecs_remove (io_t *io) |
| int | io_name_set (io_t *io, const char *name) |
| int | io_name_get (io_t *io, char *name, size_t sz) |
|
|
Close the given io object.
Close the underlying source/sink of the given
|
|
||||||||||||
|
Insert a codec at the head the codec chain.
|
|
||||||||||||
|
Append a codec to the codec chain.
|
|
|
Flush, remove and free all codecs in the codec chain.
|
|
||||||||||||||||
|
Copy a block of data between two
Read from
|
|
||||||||||||
|
Duplicate an IO handle.
Create a copy of
|
|
|
Flush the write buffer. Force a write of all buffered data to the output device.
|
|
|
Free an
Free the given
|
|
||||||||||||||||||||
|
Read a chunk of data until the given character is found.
Read from
|
|
||||||||||||
|
Read a char from an
Read a char from the
|
|
||||||||||||||||
|
Read a line from an
Read a line from
|
|
||||||||||||||||
|
Return the name of the given
Save in
|
|
||||||||||||
|
Set the name of an
Set the name of the given
|
|
||||||||||||
|
Write the input stream to the output stream.
Read all data from
|
|
||||||||||||||||
|
Write a string to
Printf-like function used to easily write strings to
|
|
||||||||||||
|
Write a char to an
Write the character
|
|
||||||||||||||||
|
Read a block of data from an
Read
|
|
||||||||||||
|
Seek to the given position.
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
|
|
|
Return the current file position. Return the current file position. There exists a unique read and write position offset.
|
|
|
Returns the type of the given io. Return the type of the given io (see enum io_type_e).
|
|
||||||||||||||||
|
Write a string to
Vprintf-like function used to easily write strings to
|
|
||||||||||||||||
|
Write a block of data to an
Write
|