Tao.PhysFs SDK Documentation |
|
Fs.PHYSFS_write Method
Write data to a PhysicsFS filehandle.
[Visual Basic]
Public Shared Function PHYSFS_write( _
ByVal
handle As
IntPtr, _
ByVal
buffer As
IntPtr, _
ByVal
objSize As
UInt32, _
ByVal
objCount As
UInt32 _
) As
Long
Parameters
-
handle
- retval from PHYSFS_openWrite or PHYSFS_openAppend.
-
buffer
- buffer to store read data into.
-
objSize
- size in bytes of objects being read from (handle).
-
objCount
- number of (objSize) objects to read from (handle).
Return Value
number of objects written. PHYSFS_getLastError() can shed light on the reason this might be less than (objCount). -1 if complete failure.
Remarks
The file must be opened for writing.
See Also
Fs Class | Tao.PhysFs Namespace