physfs.h
changeset 28 529214f57d1b
parent 23 bd6ba9c8717c
child 29 91b45664ec85
equal deleted inserted replaced
27:e1d3292769b2 28:529214f57d1b
   789  *  @return nonzero on success, zero on error. Specifics of the error can be
   789  *  @return nonzero on success, zero on error. Specifics of the error can be
   790  *          gleaned from PHYSFS_getLastError().
   790  *          gleaned from PHYSFS_getLastError().
   791  */
   791  */
   792 int PHYSFS_seek(PHYSFS_file *handle, int pos);
   792 int PHYSFS_seek(PHYSFS_file *handle, int pos);
   793 
   793 
       
   794 
       
   795 /**
       
   796  * Get total length of a file in bytes. Note that if the file size can't
       
   797  *  be determined (since the archive is "streamed" or whatnot) than this
       
   798  *  with report (-1). Also note that if another process/thread is writing
       
   799  *  to this file at the same time, then the information this function
       
   800  *  supplies could be incorrect before you get it. Use with caution, or
       
   801  *  better yet, don't use at all.
       
   802  *
       
   803  *   @param handle handle returned from PHYSFS_open*().
       
   804  *  @return size in bytes of the file. -1 if can't be determined.
       
   805  */
       
   806 int PHYSFS_fileLength(PHYSFS_file *handle);
       
   807 
   794 #ifdef __cplusplus
   808 #ifdef __cplusplus
   795 }
   809 }
   796 #endif
   810 #endif
   797 
   811 
   798 #endif  /* !defined _INCLUDE_PHYSFS_H_ */
   812 #endif  /* !defined _INCLUDE_PHYSFS_H_ */