stream_position/[2,3]

Module: sio

stream_position/[2,3] — reposition a stream

FORMS

set_stream_position(Stream_or_alias, Current_position, New_position)

DESCRIPTION

If the stream associated with Stream_or_alias supports repositioning, Current_position is unified with the current stream position of the stream, and, as a side effect, the stream position of this stream is set to the position represented by New_position. New_position may be one of the following values:

ERRORS

Stream_or_Alias is a variable

– – – – > instantiation_error

New_Position is a variable

– – – – > instantiation_error

Stream_or_Alias is neither a variable nor a stream descriptor nor an alias

– – – – > domain_error(stream_position, Position)

New_Position is neither a variable nor a stream position

– – – – > domain_error(stream_position, Position)

Stream_or_Alias is not associated with an open stream

– – – – > existence_error(stream, Stream_or_Alias)

Stream_or_Alias has stream property reposition(false)

– – – – > permission_error(reposition, stream, Stream_or_Alias)