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

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

Field Documentation

◆ rh

◆ cls

void* GNUNET_BIO_ReadSpec::cls

Closure for rh.

Can be NULL.

Definition at line 383 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 394 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 399 of file gnunet_bio_lib.h.


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