⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classpstructuredfile.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<hr><h2>Member Function Documentation</h2><a name="z361_1" doxytag="PStructuredFile::GetStructureSize"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PINDEX PStructuredFile::GetStructureSize </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Get the size of each structure in the file.<p><dl compact><dt><b>Returns: </b></dt><dd> number of bytes in a structure. </dl>    </td>  </tr></table><a name="z359_0" doxytag="PStructuredFile::Read"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> BOOL PStructuredFile::Read </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>buffer</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Read a sequence of bytes into the specified buffer, translating the structure according to the specification made in the <a class="el" href="classPStructuredFile.html#z361_2">SetStructure()</a># function.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the structure was successfully read. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>buffer</em>&nbsp;</td><td>Pointer to structure to receive data. </td></tr></table></dl>    </td>  </tr></table><a name="z361_2" doxytag="PStructuredFile::SetStructure"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void PStructuredFile::SetStructure </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="structPStructuredFile_1_1Element.html">Element</a> *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>structure</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>PINDEX&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>numElements</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Set the structure of each record in the file. <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>numElements</em>&nbsp;</td><td>Array of structure elements Number of structure elements in structure. </td></tr></table></dl>    </td>  </tr></table><a name="z359_1" doxytag="PStructuredFile::Write"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> BOOL PStructuredFile::Write </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const void *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>buffer</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Write a sequence of bytes into the specified buffer, translating the structure according to the specification made in the <a class="el" href="classPStructuredFile.html#z361_2">SetStructure()</a># function.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the structure was successfully written. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>buffer</em>&nbsp;</td><td>Pointer to structure to write data from. </td></tr></table></dl>    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a name="n2" doxytag="PStructuredFile::numElements"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PINDEX PStructuredFile::numElements<code> [protected]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Number of elements in the array.<p>    </td>  </tr></table><a name="n1" doxytag="PStructuredFile::structure"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="structPStructuredFile_1_1Element.html">Element</a>* PStructuredFile::structure<code> [protected]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Array of elements in the structure.<p>    </td>  </tr></table><a name="n0" doxytag="PStructuredFile::structureSize"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PINDEX PStructuredFile::structureSize<code> [protected]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Number of bytes in structure.<p>    </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="sfile_8h-source.html">sfile.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:20 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -