Procházet zdrojové kódy

physfs.h: Corrected some documentation.

Ryan C. Gordon před 5 měsíci
rodič
revize
b545573a07
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      src/physfs.h

+ 4 - 1
src/physfs.h

@@ -3193,12 +3193,15 @@ typedef struct PHYSFS_Io
      *  being destroyed separately (so, for example: they can't share a file
      *  handle; they each need their own).
      *
+     * The current seek position does not need to be duplicated; the caller
+     *  is expected to explicitly seek the duplicated object before using it.
+     *
      * If you can't duplicate a handle, it's legal to return NULL, but you
      *  almost certainly need this functionality if you want to use this to
      *  PHYSFS_Io to back an archive.
      *
      *   \param io The i/o instance to duplicate.
-     *  \return A new value for a stream's (opaque) field, or NULL on error.
+     *  \return A new instance of `io` that can operate independently.
      */
     struct PHYSFS_Io *(*duplicate)(struct PHYSFS_Io *io);