Stream.seek

Repositions the offset of the stream stream to the argument offset according to the directive whence as follows:

#GMIME_STREAM_SEEK_SET: Seek offset bytes relative to the beginning (bound_start) of the stream.

#GMIME_STREAM_SEEK_CUR: Seek offset bytes relative to the current offset of the stream.

#GMIME_STREAM_SEEK_END: Seek offset bytes relative to the end of the stream (bound_end if non-negative).

class Stream
long
seek

Parameters

offset long

positional offset

whence gmime.types.SeekWhence

seek directive

Return Value

Type: long

the resultant position on success or %-1 on fail.