GNUnet 0.22.2
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 374 of file gnunet_bio_lib.h.

Field Documentation

◆ rh

◆ cls

void* GNUNET_BIO_ReadSpec::cls

Closure for rh.

Can be NULL.

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

Referenced by GNUNET_BIO_read_spec_commit(), read_spec_handler_int32(), read_spec_handler_int64(), and read_spec_handler_string().

◆ size

size_t GNUNET_BIO_ReadSpec::size

Size of target.

Can be 0 if unknown or not fixed.

Definition at line 400 of file gnunet_bio_lib.h.


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