seek method

seek

Sets the position within the current stream.

Returns

The new position within the current stream.

def seek(self, offset, origin):
    ...
ParameterTypeDescription
offsetintA byte offset relative to the origin parameter. This value represents offset from the starting stream position passed in the StreamContainer constructor.
originSeekOriginA value of type SeekOrigin indicating the reference point used to obtain the new position.

See Also