![]() |
GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
An I/O abstraction. More...
#include <gp_io.h>
Data Fields | |
ssize_t(* | read )(gp_io *self, void *buf, size_t size) |
A read() callback. | |
ssize_t(* | write )(gp_io *self, const void *buf, size_t size) |
A write() callback. | |
off_t(* | seek )(gp_io *self, off_t off, enum gp_seek_whence whence) |
A seek() callback. | |
int(* | close )(gp_io *self) |
A close() callback. | |
off_t | mark |
A mark to store offset to by the gp_io_mark(). | |
int(* gp_io::close) (gp_io *self) |
A close() callback.
Finalizes writes, frees memory.
self | An I/O. |
Definition at line 62 of file gp_io.h.
Referenced by gp_io_close().
ssize_t(* gp_io::read) (gp_io *self, void *buf, size_t size) |
A read() callback.
self | An I/O. |
buf | A buffer to read to. |
size | A size of the buffer. |
Definition at line 33 of file gp_io.h.
Referenced by gp_io_getb(), and gp_io_read().
off_t(* gp_io::seek) (gp_io *self, off_t off, enum gp_seek_whence whence) |
A seek() callback.
off | An offset in the file. |
whence | Defines to what the offset is relative to. |
Definition at line 52 of file gp_io.h.
Referenced by gp_io_rewind(), gp_io_seek(), and gp_io_tell().
ssize_t(* gp_io::write) (gp_io *self, const void *buf, size_t size) |
A write() callback.
self | An I/O. |
buf | A buffer to write to. |
size | A size of the buffer. |
Definition at line 43 of file gp_io.h.
Referenced by gp_io_putb(), and gp_io_write().