Tao.PhysFs SDK Documentation |
|
Fs.PHYSFS_read Method (IntPtr, Int32[], UInt32, UInt32)
Read a integer array from a PhysicsFS filehandle.
[Visual Basic]
Overloads Public Shared Function PHYSFS_read( _
ByVal
handle As
IntPtr, _
ByRef
buffer As
Integer(), _
ByVal
objSize As
UInt32, _
ByVal
objCount As
UInt32 _
) As
Long
Parameters
-
handle
- handle returned from PHYSFS_openRead.
-
buffer
- integer array to read in
-
objSize
- size in bytes of objects being read from (handle).
-
objCount
- number of (objSize) objects to read from (handle).
Return Value
number of objects read. PHYSFS_getLastError can shed light on the reason this might be less than (objCount), as can PHYSFS_eof. -1 if complete failure.
Remarks
The file must be opened for reading.
See Also
Fs Class | Tao.PhysFs Namespace | Fs.PHYSFS_read Overload List | PHYSFS_eof