GNUnet  0.20.0
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 69 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 79 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 84 of file bio.c.

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

◆ buffer

char* GNUNET_BIO_ReadHandle::buffer

I/O buffer.

Do not free!

Definition at line 89 of file bio.c.

Referenced by GNUNET_BIO_read_close().

◆ have

size_t GNUNET_BIO_ReadHandle::have

Number of bytes available in buffer.

Definition at line 94 of file bio.c.

◆ size

size_t GNUNET_BIO_ReadHandle::size

Total size of buffer.

Definition at line 99 of file bio.c.

◆ pos

off_t GNUNET_BIO_ReadHandle::pos

Current read offset in buffer.

Definition at line 104 of file bio.c.

Referenced by read_from_file().


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