tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

prseekwhence.rst (741B)


      1 PRSeekWhence
      2 ============
      3 
      4 Specifies how to interpret the ``offset`` parameter in setting the file
      5 pointer associated with the ``fd`` parameter for the :ref:`PR_Seek` and
      6 :ref:`PR_Seek64` functions.
      7 
      8 
      9 Syntax
     10 ------
     11 
     12 .. code::
     13 
     14   #include <prio.h>
     15 
     16   typedef PRSeekWhence {
     17     PR_SEEK_SET = 0,
     18     PR_SEEK_CUR = 1,
     19     PR_SEEK_END = 2
     20   } PRSeekWhence;
     21 
     22 
     23 Enumerators
     24 ~~~~~~~~~~~
     25 
     26 The enumeration has the following enumerators:
     27 
     28 ``PR_SEEK_SET``
     29   Sets the file pointer to the value of the ``offset`` parameter.
     30 ``PR_SEEK_CUR``
     31   Sets the file pointer to its current location plus the value of the
     32   ``offset`` parameter.
     33 ``PR_SEEK_END``
     34   Sets the file pointer to the size of the file plus the value of the
     35   ``offset`` parameter.