📄 group__g__file.html
字号:
<td></td> <td class="paramtype"><a class="el" href="struct_o_c_i___file.html">OCI_File</a> * </td> <td class="paramname"> <em>file2</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Compare two file handle for equality. <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>file</em> </td><td>- File handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>file2</em> </td><td>- File2 handle</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd></dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE is the lobs are not null and equal otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="file_8c-source.html#l00569">569</a> of file <a class="el" href="file_8c-source.html">file.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00462">OCI_File::con</a>, and <a class="el" href="ocilib__types_8h-source.html#l00460">OCI_File::handle</a>.</p></div></div><p><a class="anchor" name="gd07691fd580272892fb87d4549628161"></a><!-- doxytag: member="ocilib.h::OCI_FileIsOpen" ref="gd07691fd580272892fb87d4549628161" args="(OCI_File *file)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_FileIsOpen </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___file.html">OCI_File</a> * </td> <td class="paramname"> <em>file</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Check if the specified file is opened within the file handle. <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>file</em> </td><td>- File handle</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE if the file was opened with this handle otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="file_8c-source.html#l00521">521</a> of file <a class="el" href="file_8c-source.html">file.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00462">OCI_File::con</a>, <a class="el" href="ocilib__types_8h-source.html#l00269">OCI_Connection::cxt</a>, <a class="el" href="ocilib__types_8h-source.html#l00267">OCI_Connection::err</a>, and <a class="el" href="ocilib__types_8h-source.html#l00460">OCI_File::handle</a>.</p></div></div><p><a class="anchor" name="gf18d3143f2d1e261b5b90becba0726fe"></a><!-- doxytag: member="ocilib.h::OCI_FileOpen" ref="gf18d3143f2d1e261b5b90becba0726fe" args="(OCI_File *file)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_FileOpen </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___file.html">OCI_File</a> * </td> <td class="paramname"> <em>file</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Open a file for reading. <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>file</em> </td><td>- File handle</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="file_8c-source.html#l00495">495</a> of file <a class="el" href="file_8c-source.html">file.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00462">OCI_File::con</a>, <a class="el" href="ocilib__types_8h-source.html#l00269">OCI_Connection::cxt</a>, <a class="el" href="ocilib__types_8h-source.html#l00267">OCI_Connection::err</a>, <a class="el" href="ocilib__types_8h-source.html#l00460">OCI_File::handle</a>, and <a class="el" href="ocilib__types_8h-source.html#l00271">OCI_Connection::nb_files</a>.</p></div></div><p><a class="anchor" name="gf6400291c6338fc6be4dfdc3a6f5eb55"></a><!-- doxytag: member="ocilib.h::OCI_FileRead" ref="gf6400291c6338fc6be4dfdc3a6f5eb55" args="(OCI_File *file, void *buffer, unsigned int len)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT unsigned int OCI_API OCI_FileRead </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___file.html">OCI_File</a> * </td> <td class="paramname"> <em>file</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"> <em>buffer</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>len</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Read a portion of a file into the given buffer. <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>file</em> </td><td>- File handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>buffer</em> </td><td>- Pointer to a buffer </td></tr> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>- Length of the buffer in bytes</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of bytes read on success otherwise 0 on failure </dd></dl><p>Definition at line <a class="el" href="file_8c-source.html#l00277">277</a> of file <a class="el" href="file_8c-source.html">file.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00462">OCI_File::con</a>, <a class="el" href="ocilib__types_8h-source.html#l00269">OCI_Connection::cxt</a>, <a class="el" href="ocilib__types_8h-source.html#l00267">OCI_Connection::err</a>, <a class="el" href="ocilib__types_8h-source.html#l00460">OCI_File::handle</a>, and <a class="el" href="ocilib__types_8h-source.html#l00466">OCI_File::offset</a>.</p><p>Referenced by <a class="el" href="group__g__fetch.html#g755a9b07c174feacd05c86e0e44b0ab0">OCI_GetString()</a>.</p></div></div><p><a class="anchor" name="gfb3e54d66132f999c576adf15fdd581e"></a><!-- doxytag: member="ocilib.h::OCI_FileSeek" ref="gfb3e54d66132f999c576adf15fdd581e" args="(OCI_File *file, big_uint offset, unsigned int mode)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_FileSeek </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___file.html">OCI_File</a> * </td> <td class="paramname"> <em>file</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">big_uint </td> <td class="paramname"> <em>offset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>mode</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Perform a seek operation on the <a class="el" href="struct_o_c_i___file.html" title="Oracle External Large objects:.">OCI_File</a> content buffer. <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>file</em> </td><td>- File handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>offset</em> </td><td>- Offset from current position </td></tr> <tr><td valign="top"></td><td valign="top"><em>mode</em> </td><td>- Seek mode</td></tr> </table></dl>Mode parameter can be one of the following value :<p><ul><li>OCI_SEEK_SET : set the file current offset to the given absolute offset</li><li>OCI_SEEK_END : set the file current offset to the end of the lob</li><li>OCI_SEEK_CUR : move the file current offset to the number of bytes given by parameter 'offset'</li></ul><p><dl class="note" compact><dt><b>Note:</b></dt><dd>Position in the File buffer starts at 0.</dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="file_8c-source.html#l00235">235</a> of file <a class="el" href="file_8c-source.html">file.c</a>.</p><p>References <a class="el" href="group__g__file.html#g0cf778c46524cb185d2d60e1cac672f5">OCI_FileGetSize()</a>, and <a class="el" href="ocilib__types_8h-source.html#l00466">OCI_File::offset</a>.</p><p>Referenced by <a class="el" href="group__g__fetch.html#g755a9b07c174feacd05c86e0e44b0ab0">OCI_GetString()</a>.</p></div></div><p><a class="anchor" name="ge31e36e786faf43a2663806a28814c68"></a><!-- doxytag: member="ocilib.h::OCI_FileSetName" ref="ge31e36e786faf43a2663806a28814c68" args="(OCI_File *file, const mtext *dir, const mtext *name)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_FileSetName </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___file.html">OCI_File</a> * </td> <td class="paramname"> <em>file</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>dir</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>name</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Set the directory and file name of FILE handle. <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>file</em> </td><td>- File handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>dir</em> </td><td>- File directory </td></tr> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>- File name</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd><ul><li>For local FILEs only</li><li>Files fetched from resultset can't be assigned a new directory and name</li></ul></dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="file_8c-source.html#l00421">421</a> of file <a class="el" href="file_8c-source.html">file.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00462">OCI_File::con</a>, <a class="el" href="ocilib__types_8h-source.html#l00267">OCI_Connection::err</a>, and <a class="el" href="ocilib__types_8h-source.html#l00460">OCI_File::handle</a>.</p></div></div><p><hr size="1"><address style="text-align: right;"><small>Generated on Sat Apr 18 01:13:14 2009 for OCILIB (C Driver for Oracle) by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -