GNUnet  0.11.x
Data Fields
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 516 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 526 of file bio.c.

Referenced by GNUNET_BIO_flush(), GNUNET_BIO_write_close(), GNUNET_BIO_write_open_file(), and write_to_file().

◆ emsg

char* GNUNET_BIO_WriteHandle::emsg

Error message, NULL if there were no errors.

Definition at line 531 of file bio.c.

Referenced by GNUNET_BIO_flush(), GNUNET_BIO_get_buffer_contents(), GNUNET_BIO_write(), GNUNET_BIO_write_close(), GNUNET_BIO_write_meta_data(), and write_to_file().

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

Referenced by GNUNET_BIO_flush(), GNUNET_BIO_get_buffer_contents(), GNUNET_BIO_write_close(), GNUNET_BIO_write_open_buffer(), GNUNET_BIO_write_open_file(), write_to_buffer(), and write_to_file().

◆ have

size_t GNUNET_BIO_WriteHandle::have

Number of bytes available in buffer.

Definition at line 543 of file bio.c.

Referenced by GNUNET_BIO_flush(), write_to_buffer(), and write_to_file().

◆ size

size_t GNUNET_BIO_WriteHandle::size

Total size of buffer.

Definition at line 548 of file bio.c.

Referenced by GNUNET_BIO_write_open_file(), and write_to_file().


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