GNUnet  0.20.0
GNUNET_BIO_WriteHandle Struct Reference

Handle for buffered writing. More...

Collaboration diagram for GNUNET_BIO_WriteHandle:

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...
void * buffer
 I/O buffer. More...
size_t have
 Number of bytes available in buffer. More...
size_t size
 Total size of buffer. More...

Detailed Description

Handle for buffered writing.

Definition at line 466 of file bio.c.

Field Documentation

◆ type

enum IOType GNUNET_BIO_WriteHandle::type

◆ fd

struct GNUNET_DISK_FileHandle* GNUNET_BIO_WriteHandle::fd

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

Definition at line 476 of file bio.c.

Referenced by GNUNET_BIO_write_open_file().

◆ emsg

char* GNUNET_BIO_WriteHandle::emsg

Error message, NULL if there were no errors.

Definition at line 481 of file bio.c.

◆ buffer

void* GNUNET_BIO_WriteHandle::buffer

I/O buffer.

This field is a void * because it is used to hold pointers to allocated structures or arrays and will be casted to the appropriate type.

Definition at line 488 of file bio.c.

◆ have

size_t GNUNET_BIO_WriteHandle::have

Number of bytes available in buffer.

Definition at line 493 of file bio.c.

◆ size

size_t GNUNET_BIO_WriteHandle::size

Total size of buffer.

Definition at line 498 of file bio.c.

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