GNUnet  0.11.x
Data Fields
GNUNET_BIO_ReadSpec Struct Reference

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

#include <gnunet_bio_lib.h>

Collaboration diagram for GNUNET_BIO_ReadSpec:

Data Fields

GNUNET_BIO_ReadHandler rh
 Function performing data deserialization. More...
void * cls
 Closure for rh. More...
const char * what
 What is being read (for error message creation) More...
void * target
 Destination buffer. More...
size_t size
 Size of target. More...

Detailed Description

Structure specifying a reading operation on an IO handle.

Definition at line 381 of file gnunet_bio_lib.h.

Field Documentation

◆ rh

GNUNET_BIO_ReadHandler GNUNET_BIO_ReadSpec::rh

◆ cls

void* GNUNET_BIO_ReadSpec::cls

Closure for rh.

Can be NULL.

Definition at line 391 of file gnunet_bio_lib.h.

Referenced by GNUNET_BIO_read_spec_commit().

◆ what

const char* GNUNET_BIO_ReadSpec::what

◆ target

void* GNUNET_BIO_ReadSpec::target

Destination buffer.

Can also be a pointer to a pointer, especially for dynamically allocated structures.

Definition at line 402 of file gnunet_bio_lib.h.

Referenced by GNUNET_BIO_read_spec_commit(), GNUNET_BIO_read_spec_double(), GNUNET_BIO_read_spec_int32(), and GNUNET_BIO_read_spec_string().

◆ size

size_t GNUNET_BIO_ReadSpec::size

Size of target.

Can be 0 if unknown or not fixed.

Definition at line 407 of file gnunet_bio_lib.h.

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