GNUnet  0.11.x
Data Fields
GNUNET_BIO_WriteSpec Struct Reference

Structure specifying a writing operation on an IO handle. More...

#include <gnunet_bio_lib.h>

Collaboration diagram for GNUNET_BIO_WriteSpec:

Data Fields

GNUNET_BIO_WriteHandler wh
 Function performing data serialization. More...
void * cls
 Closure for rh. More...
const char * what
 What is being read (for error message creation) More...
void * source
 Source buffer. More...
size_t source_size
 Size of source. More...

Detailed Description

Structure specifying a writing operation on an IO handle.

Definition at line 540 of file gnunet_bio_lib.h.

Field Documentation

◆ wh

GNUNET_BIO_WriteHandler GNUNET_BIO_WriteSpec::wh

◆ cls

void* GNUNET_BIO_WriteSpec::cls

Closure for rh.

Can be NULL.

Definition at line 550 of file gnunet_bio_lib.h.

Referenced by GNUNET_BIO_write_spec_commit().

◆ what

const char* GNUNET_BIO_WriteSpec::what

◆ source

void* GNUNET_BIO_WriteSpec::source

Source buffer.

The data in this buffer will be written to the handle.

Definition at line 560 of file gnunet_bio_lib.h.

◆ source_size

size_t GNUNET_BIO_WriteSpec::source_size

Size of source.

If it's smaller than the real size of source, only this many bytes will be written.

Definition at line 566 of file gnunet_bio_lib.h.

Referenced by GNUNET_BIO_write_spec_commit(), GNUNET_BIO_write_spec_double(), GNUNET_BIO_write_spec_float(), GNUNET_BIO_write_spec_meta_data(), and GNUNET_BIO_write_spec_string().

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