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

struct GNUNET_DISK_FileHandlefd
 Underlying file abstraction. 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 read 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 53 of file bio.c.

Field Documentation

◆ fd

struct GNUNET_DISK_FileHandle* GNUNET_BIO_ReadHandle::fd

Underlying file abstraction.

Definition at line 58 of file bio.c.

Referenced by GNUNET_BIO_read(), GNUNET_BIO_read_close(), GNUNET_BIO_read_open(), and GNUNET_BIO_write_open().

◆ emsg

char* GNUNET_BIO_ReadHandle::emsg

Error message, NULL if there were no errors.

Definition at line 63 of file bio.c.

Referenced by copy_from_reader(), deserialize_file_information(), GNUNET_BIO_read(), GNUNET_BIO_read_close(), GNUNET_BIO_read_meta_data(), and GNUNET_BIO_read_string().

◆ buffer

char* GNUNET_BIO_ReadHandle::buffer

I/O buffer.

Allocated at the end of the struct, do not free!

Definition at line 68 of file bio.c.

Referenced by GNUNET_BIO_read(), GNUNET_BIO_read_open(), and GNUNET_BIO_write().

◆ have

size_t GNUNET_BIO_ReadHandle::have

Number of bytes available in read buffer.

Definition at line 73 of file bio.c.

Referenced by GNUNET_BIO_read().

◆ size

size_t GNUNET_BIO_ReadHandle::size

Total size of buffer.

Definition at line 78 of file bio.c.

Referenced by GNUNET_BIO_read(), GNUNET_BIO_read_meta_data(), GNUNET_BIO_read_open(), and GNUNET_BIO_write_meta_data().

◆ pos

off_t GNUNET_BIO_ReadHandle::pos

Current read offset in buffer.

Definition at line 83 of file bio.c.

Referenced by GNUNET_BIO_read(), and GNUNET_BIO_write().


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