GNUnet  0.19.3
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 521 of file gnunet_bio_lib.h.

Field Documentation

◆ wh

GNUNET_BIO_WriteHandler GNUNET_BIO_WriteSpec::wh

Function performing data serialization.

Definition at line 526 of file gnunet_bio_lib.h.

◆ cls

void* GNUNET_BIO_WriteSpec::cls

Closure for rh.

Can be NULL.

Definition at line 531 of file gnunet_bio_lib.h.

◆ what

const char* GNUNET_BIO_WriteSpec::what

What is being read (for error message creation)

Definition at line 536 of file gnunet_bio_lib.h.

Referenced by GNUNET_BIO_write_spec_double(), GNUNET_BIO_write_spec_int32(), and GNUNET_BIO_write_spec_string().

◆ source

void* GNUNET_BIO_WriteSpec::source

Source buffer.

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

Definition at line 541 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 547 of file gnunet_bio_lib.h.


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