libxmq
Libxmq C API
Loading...
Searching...
No Matches
XMQReader Struct Reference

#include <xmq.h>

Public Attributes

void * reader_state
size_t(* read )(void *reader_state, char *start, char *stop)

Detailed Description

The xmq parser invokes the reader to fetch more data. The reader is resonsible for storing data in the buffer (start <= i < stop) and return the number of bytes stored.

The reader_state is provided from the

You can create your own reader with a function that takes a pointer to the reader state. Returns the number of bytes stored in buffer, maximum stored is stop-start.

Parameters
reader_statepoints to the reader state
readinvoked with the reader state and where to store input data.

Member Data Documentation

◆ read

size_t(* XMQReader::read) (void *reader_state, char *start, char *stop)

The function to be invoked from the parser to fetch more data to parse.

◆ reader_state

void* XMQReader::reader_state

The reader_state is passed to the read function.


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