Read bytes from a PhysicsFS filehandle.
Defined in <physfs.h>
PHYSFS_sint64 PHYSFS_readBytes(PHYSFS_File *handle, void *buffer, PHYSFS_uint64 len);| PHYSFS_File * | handle | handle returned from PHYSFS_openRead(). |
| void * | buffer | buffer of at least len bytes to store read data
into. |
| PHYSFS_uint64 | len | number of bytes being read from handle. |
(PHYSFS_sint64) Returns number of bytes
read. This may be less than len; this does not signify an
error, necessarily (a short read may mean EOF). PHYSFS_getLastErrorCode() can shed
light on the reason this might be < len, as can PHYSFS_eof(). -1 if complete failure.
The file must be opened for reading.
Multiple threads can not operate on the same PHYSFS_File at the same time, but they can safely operate on different ones simultaneously.
This function is available since PhysicsFS 2.1.0.