Function physfs_sys::PHYSFS_readUBE16[][src]

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

\fn int PHYSFS_readUBE16(PHYSFS_File *file, PHYSFS_uint16 *val) \brief Read and convert an unsigned 16-bit bigendian value.

Convenience function. Read an unsigned 16-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().