XQuilla/docs/xqc-api/structXQC__InputStream__s.html

142 lines
7.9 KiB
HTML
Raw Normal View History

2020-02-17 22:17:06 +01:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>XQilla XQC API Documentation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&amp;type=2" border="0" alt="SourceForge.net Logo" /></a>
<!-- Generated by Doxygen 1.5.5 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>XQC_InputStream_s Struct Reference</h1><!-- doxytag: class="XQC_InputStream_s" -->The <a class="el" href="xqc_8h.html#a2362b43cca7bd9527ed4477a5481528">XQC_InputStream</a> struct is designed to be populated by users for the purpose of streaming data into an XQC implementation.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="xqc_8h-source.html">xqc.h</a>&gt;</code>
<p>
<p>
<a href="structXQC__InputStream__s-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__InputStream__s.html#a4d231151fe0fe6ddc189d84f8f1197b">encoding</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The text encoding of the input data as a UTF-8 string, or 0 if unknown. <a href="#a4d231151fe0fe6ddc189d84f8f1197b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__InputStream__s.html#72b22742c94ee0efe5b5de0e63b7ae89">user_data</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Can be used for user specific purposes. <a href="#72b22742c94ee0efe5b5de0e63b7ae89"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__InputStream__s.html#9dd7b49bdfaf09c4070c43aa5a0e0c66">read</a> )(<a class="el" href="structXQC__InputStream__s.html">XQC_InputStream</a> *stream, void *buffer, unsigned int length)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The function called to read more of the input query. <a href="#9dd7b49bdfaf09c4070c43aa5a0e0c66"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__InputStream__s.html#48aaf721537dfba8945afb24511030ac">free</a> )(<a class="el" href="structXQC__InputStream__s.html">XQC_InputStream</a> *stream)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called to free the resources associated with the XQC_InputStream. <a href="#48aaf721537dfba8945afb24511030ac"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The <a class="el" href="xqc_8h.html#a2362b43cca7bd9527ed4477a5481528">XQC_InputStream</a> struct is designed to be populated by users for the purpose of streaming data into an XQC implementation. <hr><h2>Member Data Documentation</h2>
<a class="anchor" name="a4d231151fe0fe6ddc189d84f8f1197b"></a><!-- doxytag: member="XQC_InputStream_s::encoding" ref="a4d231151fe0fe6ddc189d84f8f1197b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char* <a class="el" href="structXQC__InputStream__s.html#a4d231151fe0fe6ddc189d84f8f1197b">XQC_InputStream_s::encoding</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The text encoding of the input data as a UTF-8 string, or 0 if unknown.
<p>
The value of the string should conform to the <code>EncName</code> grammar production as specified in XML 1.0:<p>
<a href="http://www.w3.org/TR/REC-xml/#NT-EncName">http://www.w3.org/TR/REC-xml/#NT-EncName</a>
</div>
</div><p>
<a class="anchor" name="72b22742c94ee0efe5b5de0e63b7ae89"></a><!-- doxytag: member="XQC_InputStream_s::user_data" ref="72b22742c94ee0efe5b5de0e63b7ae89" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* <a class="el" href="structXQC__InputStream__s.html#72b22742c94ee0efe5b5de0e63b7ae89">XQC_InputStream_s::user_data</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Can be used for user specific purposes.
<p>
</div>
</div><p>
<a class="anchor" name="9dd7b49bdfaf09c4070c43aa5a0e0c66"></a><!-- doxytag: member="XQC_InputStream_s::read" ref="9dd7b49bdfaf09c4070c43aa5a0e0c66" args=")(XQC_InputStream *stream, void *buffer, unsigned int length)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned int(* <a class="el" href="structXQC__InputStream__s.html#9dd7b49bdfaf09c4070c43aa5a0e0c66">XQC_InputStream_s::read</a>)(<a class="el" href="structXQC__InputStream__s.html">XQC_InputStream</a> *stream, void *buffer, unsigned int length) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The function called to read more of the input query.
<p>
The function should read the next chunk of input into the buffer provided, returning the length of the data read.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>stream</em>&nbsp;</td><td>The XQC_InputStream that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>buffer</em>&nbsp;</td><td>The buffer to read the data into </td></tr>
<tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>The length of the buffer</td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of bytes read - this will be less than length if the end of the input is reached</dd></dl>
</div>
</div><p>
<a class="anchor" name="48aaf721537dfba8945afb24511030ac"></a><!-- doxytag: member="XQC_InputStream_s::free" ref="48aaf721537dfba8945afb24511030ac" args=")(XQC_InputStream *stream)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* <a class="el" href="structXQC__InputStream__s.html#48aaf721537dfba8945afb24511030ac">XQC_InputStream_s::free</a>)(<a class="el" href="structXQC__InputStream__s.html">XQC_InputStream</a> *stream) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Called to free the resources associated with the XQC_InputStream.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>stream</em>&nbsp;</td><td>The XQC_InputStream that this function pointer is a member of </td></tr>
</table>
</dl>
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="xqc_8h-source.html">xqc.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 5 19:54:59 2009 for XQilla XQC API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
</body>
</html>