> The XQuery Processor
#include <zorba/zorbac.h>
Data Fields | |
| void(* | free )(XQC_InputStream stream) |
| Called to free the resources associated with the XQC_InputStream. | |
| int(* | read )(XQC_InputStream stream, char *buf, unsigned int length) |
| The function called to read more of the input (e.g. | |
| void * | user_data |
| Can be used for user specific purposes. | |
Definition at line 2003 of file zorbac.h.
| void(* XQC_InputStream_s::free)(XQC_InputStream stream) |
Called to free the resources associated with the XQC_InputStream.
The free function is called by the implementation if it finished reading from the stream. This allows for lazy evaluation without the user needing to know when reading from the stream has finished.
| stream | The XQC_InputStream that this function pointer is a member of |
| int(* XQC_InputStream_s::read)(XQC_InputStream stream, char *buf, unsigned int length) |
The function called to read more of the input (e.g.
the query). The function should read the next chunk of input into the buffer provided, returning the length of the data read.
| stream | The XQC_InputStream that this function pointer is a member of | |
| [out] | buffer | The buffer to read the data into |
| length | The length of the buffer |