GNUnet 0.21.1
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:
[legend]

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 522 of file gnunet_bio_lib.h.

Field Documentation

◆ wh

◆ cls

void* GNUNET_BIO_WriteSpec::cls

Closure for rh.

Can be NULL.

Definition at line 532 of file gnunet_bio_lib.h.

Referenced by GNUNET_BIO_write_spec_commit().

◆ what

◆ source

void* GNUNET_BIO_WriteSpec::source

Source buffer.

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

Definition at line 542 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 548 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_string(), and GNUNET_FS_write_spec_meta_data().


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