Tao.PhysFs SDK Documentation

Fs.PHYSFS_read Method (IntPtr, Char[], UInt32, UInt32)

Read a char array from a PhysicsFS filehandle.

[Visual Basic]
Overloads Public Shared Function PHYSFS_read( _
   ByVal handle As IntPtr, _
   ByRef buffer As Char(), _
   ByVal objSize As UInt32, _
   ByVal objCount As UInt32 _
) As Long
[C#]
public static long PHYSFS_read(
   IntPtr handle,
   out char[] buffer,
   uint objSize,
   uint objCount
);

Parameters

handle
handle returned from PHYSFS_openRead.
buffer
char 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