StreamInterface.seek

Sets the current position in the stream

interface StreamInterface
seek

Parameters

pos sdiff_t

The number of bytes to offset from origin

origin Seek

Position used as reference for the offset. It is specified by one of the following constants: Seek.set - beginning of the stream; Seek.cur - current position of the pointer; Seek.end - end of the stream.

Return Value

Type: ssize_t

The current positon in the stream

Meta