Function physfs_sys::PHYSFS_readSBE16[][src]

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

\fn int PHYSFS_readSBE16(PHYSFS_File *file, PHYSFS_sint16 *val) \brief Read and convert a signed 16-bit bigendian value.

Convenience function. Read a signed 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().