Function physfs_sys::PHYSFS_readSBE64[][src]

pub unsafe extern "C" fn PHYSFS_readSBE64(
    file: *mut PHYSFS_File,
    val: *mut PHYSFS_sint64
) -> c_int
Expand description

\fn int PHYSFS_readSBE64(PHYSFS_File *file, PHYSFS_sint64 *val) \brief Read and convert a signed 64-bit bigendian value.

Convenience function. Read a signed 64-bit bigendian value from a file and convert it to the platform’s native byte order.

\param file PhysicsFS file handle from which to read. \param val pointer to where value should be stored. \return zero on failure, non-zero on success. If successful, (*val) will store the result. On failure, you can find out what went wrong from PHYSFS_getLastErrorCode().

\warning Remember, PHYSFS_sint64 is only 32 bits on platforms without any sort of 64-bit support.