Tao.PhysFs SDK Documentation

Fs.PHYSFS_flush Method 

Flush a buffered PhysicsFS file handle.

[Visual Basic]
Public Shared Function PHYSFS_flush( _
   ByVal handle As IntPtr _
) As Integer
[C#]
public static int PHYSFS_flush(
   IntPtr handle
);

Parameters

handle
handle returned from PHYSFS_open*().

Return Value

nonzero if successful, zero on error.

Remarks

For buffered files opened for writing, this will put the current contents of the buffer to disk and flag the buffer as empty if possible.

For buffered files opened for reading or unbuffered files, this is a safe no-op, and will report success.

See Also

Fs Class | Tao.PhysFs Namespace | PHYSFS_setBuffer | PHYSFS_close