Tao.PhysFs SDK Documentation

Fs.PHYSFS_seek Method 

Seek to a new position within a PhysicsFS filehandle.

[Visual Basic]
Public Shared Function PHYSFS_seek( _
   ByVal handle As IntPtr, _
   ByVal pos As UInt64 _
) As Integer
[C#]
public static int PHYSFS_seek(
   IntPtr handle,
   ulong pos
);

Parameters

handle
handle returned from PHYSFS_open*().
pos
number of bytes from start of file to seek to.

Return Value

nonzero on success, zero on error. Specifics of the error can be gleaned from PHYSFS_getLastError().

Remarks

The next read or write will occur at that place. Seeking past the beginning or end of the file is not allowed, and causes an error.

See Also

Fs Class | Tao.PhysFs Namespace | PHYSFS_tell