<!DOCTYPE html><html><head>
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
<style type="text/css">body { font-family:'宋体'; font-size:13px}</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">在 Tue, 04 Dec 2012 02:44:21 +0800,Christoph Nelles &lt;evilazrael@evilazrael.de&gt; 写道:<br><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex">
    Hi, <br>
    <br>
    write your own small wrapper function with the third parameter which
    translates relative positions to absolute positions. &nbsp; It is not so
    difficult, just a little bit of math (and physfs_tell). The worst is
    probably SEEK_END. If Physfs_uint64 is a problem for you, try a weak
    &amp; dynamic typed language.<br>
    </blockquote><div><br></div><div>Well, I made a mistake...</div><div><br></div><div>  2882     /**<br>  2883      * \brief Move i/o position to a given byte offset from start.<br>  2884      *<br>  2885      * This method moves the i/o position, so the next read/write will<br>  2886      *  be of the byte at (offset) offset. Seeks past the end of file should<br>  2887      *  be treated as an error condition.<br>  2888      *<br>  2889      *   \param io The i/o instance to seek.<br>  2890      *   \param offset The new byte offset for the i/o position.<br>  2891      *  \return non-zero on success, zero on error.<br>  2892      */<br>  2893     int (*seek)(struct PHYSFS_Io *io, PHYSFS_uint64 offset);</div><div><br></div><div>The PHYSFS_seek&nbsp;moves i/o position to a given byte offset from START,</div><div>not CURRENET position.</div><div><br></div><br><div id="M2Signature"><div>-- </div><div>使用Opera的电子邮件客户端:<a href="http://www.opera.com/mail/">http://www.opera.com/mail/</a></div></div></body></html>