KLone APIs | Modules | Data Structures | File List | Data Fields | Globals

io.h File Reference

Go to the source code of this file.


Typedefs

typedef io_s io_t

Enumerations

enum  io_type_e { IO_TYPE_FD, IO_TYPE_MEM }
enum  io_fd_flags { IO_FD_NO_FLAGS, IO_FD_CLOSE }
enum  io_mem_flags { IO_MEM_NO_FLAGS, IO_MEM_FREE_BUF }

Functions

int io_fd_create (int fd, int flags, io_t **pio)
int io_mem_create (char *buf, size_t size, int flags, io_t **pio)
int io_fd_get_d (io_t *)
char * io_mem_get_buf (io_t *)
size_t io_mem_get_bufsz (io_t *io)
enum io_type_e io_type (io_t *io)
int io_close (io_t *io)
int io_free (io_t *io)
int io_dup (io_t *io, io_t **pio)
int io_name_set (io_t *io, const char *name)
int io_name_get (io_t *io, char *name, size_t sz)
ssize_t io_read (io_t *io, char *buf, size_t size)
ssize_t io_write (io_t *io, const char *buf, size_t size)
ssize_t io_flush (io_t *io)
ssize_t io_seek (io_t *io, size_t off)
ssize_t io_tell (io_t *io)
ssize_t io_copy (io_t *out, io_t *in, size_t size)
ssize_t io_pipe (io_t *out, io_t *in)
ssize_t io_gets (io_t *io, char *buf, size_t size)
ssize_t io_get_until (io_t *io, char stop_at, char *buf, size_t size)
ssize_t io_getc (io_t *io, char *c)
ssize_t io_printf (io_t *io, const char *fmt,...)
ssize_t io_vprintf (io_t *io, const char *fmt, va_list ap)
ssize_t io_putc (io_t *io, char c)
int io_codec_add_head (io_t *io, codec_t *codec)
int io_codec_add_tail (io_t *io, codec_t *codec)
int io_codecs_remove (io_t *io)
int io_is_secure (io_t *io)

Typedef Documentation

typedef struct io_s io_t
 

Definition at line 29 of file io.h.


Enumeration Type Documentation

enum io_fd_flags
 

Enumeration values:
IO_FD_NO_FLAGS 
IO_FD_CLOSE 

Definition at line 40 of file io.h.

enum io_mem_flags
 

Enumeration values:
IO_MEM_NO_FLAGS 
IO_MEM_FREE_BUF 

Definition at line 45 of file io.h.

enum io_type_e
 

Enumeration values:
IO_TYPE_FD 
IO_TYPE_MEM 

Definition at line 31 of file io.h.


Function Documentation

int io_fd_create int  fd,
int  flags,
io_t **  pio
 

Definition at line 136 of file iofd.c.

int io_fd_get_d io_t  ) 
 

Definition at line 125 of file iofd.c.

int io_is_secure io_t io  ) 
 

Definition at line 1074 of file io.c.

int io_mem_create char *  buf,
size_t  size,
int  flags,
io_t **  pio
 

Definition at line 136 of file iomem.c.

char* io_mem_get_buf io_t  ) 
 

Definition at line 124 of file iomem.c.

size_t io_mem_get_bufsz io_t io  ) 
 

Definition at line 112 of file iomem.c.

enum io_type_e io_type io_t io  )