wiki.icculus.org
[ front page | index | search | recent changes | git repo | offline html ]

PHYSFS_readSLE64

Read and convert a signed 64-bit littleendian value.

Header File

Defined in <physfs.h>

Syntax

int PHYSFS_readSLE64(PHYSFS_File *file, PHYSFS_sint64 *val);

Function Parameters

PHYSFS_File * file PhysicsFS file handle from which to read.
PHYSFS_sint64 * val pointer to where value should be stored.

Return Value

(int) Returns 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().

Remarks

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

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

Thread Safety

Multiple threads can not operate on the same PHYSFS_File at the same time, but they can safely operate on different ones simultaneously.

Version

This function is available since PhysicsFS 1.0.0.


CategoryAPI, CategoryAPIFunction, CategoryPhysicsFS


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.