📄 struct__mg__rwops.htm
字号:
<!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>MiniGUI V1.6.10 API Reference: _MG_RWops Struct Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>_MG_RWops Struct Reference<br><small>[<a class="el" href="group__general__rw__fns.htm">General read/write operations</a>]</small></h1><code>#include <<a class="el" href="endianrw_8h-source.htm">endianrw.h</a>></code><p><h2>Data Fields</h2><ul><li>int(* <a class="el" href="struct__MG__RWops.htm#o0">seek</a> )(struct <a class="el" href="struct__MG__RWops.htm">_MG_RWops</a> *context, int offset, int whence)<li>int(* <a class="el" href="struct__MG__RWops.htm#o1">read</a> )(struct <a class="el" href="struct__MG__RWops.htm">_MG_RWops</a> *context, void *ptr, int objsize, int num)<li>int(* <a class="el" href="struct__MG__RWops.htm#o2">write</a> )(struct <a class="el" href="struct__MG__RWops.htm">_MG_RWops</a> *context, const void *ptr, int objsize, int num)<li>int(* <a class="el" href="struct__MG__RWops.htm#o3">close</a> )(struct <a class="el" href="struct__MG__RWops.htm">_MG_RWops</a> *context)<li>int(* <a class="el" href="struct__MG__RWops.htm#o4">eof</a> )(struct <a class="el" href="struct__MG__RWops.htm">_MG_RWops</a> *context)<li><a class="el" href="group__basic__types.htm#ga4">Uint32</a> <a class="el" href="struct__MG__RWops.htm#o5">type</a></ul><hr><a name="_details"></a><h2>Detailed Description</h2>The read/write operation structure. <p><p>Definition at line <a class="el" href="endianrw_8h-source.htm#l00073">73</a> of file <a class="el" href="endianrw_8h-source.htm">endianrw.h</a>.<hr><h2>Field Documentation</h2><a class="anchor" name="o3" doxytag="_MG_RWops::close"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int(* <a class="el" href="struct__MG__RWops.htm#o3">close</a>)(struct <a class="el" href="struct__MG__RWops.htm">_MG_RWops</a> *context) </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Close and free an allocated MG_RWops structure. </td> </tr></table><a class="anchor" name="o4" doxytag="_MG_RWops::eof"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int(* <a class="el" href="struct__MG__RWops.htm#o4">eof</a>)(struct <a class="el" href="struct__MG__RWops.htm">_MG_RWops</a> *context) </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Test the end-of-file indicator. </td> </tr></table><a class="anchor" name="o1" doxytag="_MG_RWops::read"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int(* <a class="el" href="struct__MG__RWops.htm#o1">read</a>)(struct <a class="el" href="struct__MG__RWops.htm">_MG_RWops</a> *context, void *ptr, int objsize, int num) </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Read up to <em>num</em> objects each of size <em>objsize</em> from the data source to the area pointed at by <em>ptr</em>. Returns the number of objects read, or -1 if the read failed. </td> </tr></table><a class="anchor" name="o0" doxytag="_MG_RWops::seek"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int(* <a class="el" href="struct__MG__RWops.htm#o0">seek</a>)(struct <a class="el" href="struct__MG__RWops.htm">_MG_RWops</a> *context, int offset, int whence) </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Seek to <em>offset</em> relative to whence, one of stdio's whence values:<br> SEEK_SET, SEEK_CUR, SEEK_END<br> Returns the final offset in the data source. </td> </tr></table><a class="anchor" name="o5" doxytag="_MG_RWops::type"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__basic__types.htm#ga4">Uint32</a> <a class="el" href="struct__MG__RWops.htm#o5">type</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Indicates the type of data source. can be one of the following values:<ul><li>RWAREA_TYPE_UNKNOWN<br> A unknown (uninitialized) data source type.</li><li>RWAREA_TYPE_STDIO<br> Stdio stream data source.</li><li>RWAREA_TYPE_MEM<br> Memory data source. </li></ul><p>Definition at line <a class="el" href="endianrw_8h-source.htm#l00121">121</a> of file <a class="el" href="endianrw_8h-source.htm">endianrw.h</a>. </td> </tr></table><a class="anchor" name="o2" doxytag="_MG_RWops::write"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int(* <a class="el" href="struct__MG__RWops.htm#o2">write</a>)(struct <a class="el" href="struct__MG__RWops.htm">_MG_RWops</a> *context, const void *ptr, int objsize, int num) </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Write exactly <em>num</em> objects each of size <em>objsize</em> from the area pointed at by <em>ptr</em> to data source. Returns <em>num</em>, or -1 if the write failed. </td> </tr></table><hr>The documentation for this struct was generated from the following file:<ul><li><a class="el" href="endianrw_8h-source.htm">endianrw.h</a></ul><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:52 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -