GNUnet 0.22.1
GNUNET_BIO_WriteHandle Struct Reference

Handle for buffered writing. More...

Collaboration diagram for GNUNET_BIO_WriteHandle:
[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...
 
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 465 of file bio.c.

Field Documentation

◆ type

enum IOType GNUNET_BIO_WriteHandle::type

The "backend" type.

Definition at line 470 of file bio.c.

◆ fd

struct GNUNET_DISK_FileHandle* GNUNET_BIO_WriteHandle::fd

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

Definition at line 475 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 480 of file bio.c.

Referenced by GNUNET_BIO_get_buffer_contents(), and GNUNET_BIO_write_close().

◆ 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 487 of file bio.c.

Referenced by GNUNET_BIO_write(), and write_to_file().

◆ have

size_t GNUNET_BIO_WriteHandle::have

Number of bytes available in buffer.

Definition at line 492 of file bio.c.

◆ size

size_t GNUNET_BIO_WriteHandle::size

Total size of buffer.

Definition at line 497 of file bio.c.


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