seek


Description:

[ Version ( since = "2.22" ) ]
public int64 seek (int64 offset, int whence)

Reset the source position to a known value.

Note that if the source stream/descriptor was not positioned at 0 to begin with, and an absolute seek is specified (whence != SEEK_CUR), then the seek position may not match the desired seek position.

Parameters:

this

MIME parser object

offset

Number of bytes to offset the seek by.

whence

SEEK_SET, SEEK_CUR, SEEK_END

Returns:

The new seek offset, or -1 on an error (for example, trying to seek on a non-seekable stream or file descriptor).