Handle for buffered reading. More...
Data Fields | |
enum IOType | type |
The "backend" type. More... | |
struct GNUNET_DISK_FileHandle * | fd |
Handle to a file on disk, if type is IO_FILE. More... | |
char * | emsg |
Error message, NULL if there were no errors. More... | |
char * | buffer |
I/O buffer. More... | |
size_t | have |
Number of bytes available in buffer. More... | |
size_t | size |
Total size of buffer. More... | |
off_t | pos |
Current read offset in buffer. More... | |
struct GNUNET_DISK_FileHandle* GNUNET_BIO_ReadHandle::fd |
Handle to a file on disk, if type is IO_FILE.
Definition at line 78 of file bio.c.
Referenced by GNUNET_BIO_read_open_file().
char* GNUNET_BIO_ReadHandle::emsg |
Error message, NULL if there were no errors.
Definition at line 83 of file bio.c.
Referenced by copy_from_reader(), deserialize_download_file(), deserialize_file_information(), deserialize_subdownload(), GNUNET_BIO_read_close(), and GNUNET_BIO_read_set_error().
char* GNUNET_BIO_ReadHandle::buffer |
I/O buffer.
Do not free!
Definition at line 88 of file bio.c.
Referenced by GNUNET_BIO_read_open_buffer().
size_t GNUNET_BIO_ReadHandle::have |
off_t GNUNET_BIO_ReadHandle::pos |
Current read offset in buffer.
Definition at line 103 of file bio.c.
Referenced by read_from_file().