Function physfs_sys::PHYSFS_fileLength[][src]

pub unsafe extern "C" fn PHYSFS_fileLength(
    handle: *mut PHYSFS_File
) -> PHYSFS_sint64
Expand description

\fn PHYSFS_sint64 PHYSFS_fileLength(PHYSFS_File *handle) \brief Get total length of a file in bytes.

Note that if another process/thread is writing to this file at the same time, then the information this function supplies could be incorrect before you get it. Use with caution, or better yet, don’t use at all.

\param handle handle returned from PHYSFS_open*(). \return size in bytes of the file. -1 if can’t be determined.

\sa PHYSFS_tell \sa PHYSFS_seek