GNUnet  0.11.x
Data Fields
GNUNET_BIO_ReadHandle Struct Reference

Handle for buffered reading. More...

Collaboration diagram for GNUNET_BIO_ReadHandle:
[legend]

Data Fields

enum IOType type
 The "backend" type. More...
 
struct GNUNET_DISK_FileHandlefd
 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...
 

Detailed Description

Handle for buffered reading.

Definition at line 73 of file bio.c.

Field Documentation

◆ type

enum IOType GNUNET_BIO_ReadHandle::type

◆ fd

struct GNUNET_DISK_FileHandle* GNUNET_BIO_ReadHandle::fd

Handle to a file on disk, if type is IO_FILE.

Definition at line 83 of file bio.c.

Referenced by GNUNET_BIO_read_open_file().

◆ emsg

char* GNUNET_BIO_ReadHandle::emsg

Error message, NULL if there were no errors.

Definition at line 88 of file bio.c.

Referenced by copy_from_reader(), deserialize_download_file(), deserialize_file_information(), deserialize_subdownload(), and GNUNET_BIO_read_close().

◆ buffer

char* GNUNET_BIO_ReadHandle::buffer

I/O buffer.

Do not free!

Definition at line 93 of file bio.c.

Referenced by GNUNET_BIO_read_open_buffer().

◆ have

size_t GNUNET_BIO_ReadHandle::have

Number of bytes available in buffer.

Definition at line 98 of file bio.c.

◆ size

size_t GNUNET_BIO_ReadHandle::size

Total size of buffer.

Definition at line 103 of file bio.c.

◆ pos

off_t GNUNET_BIO_ReadHandle::pos

Current read offset in buffer.

Definition at line 108 of file bio.c.

Referenced by read_from_file().


The documentation for this struct was generated from the following file: