Next: , Previous: , Up: PositionableStream   [Index]


1.133.5 PositionableStream: positioning

basicPosition: anInteger

Move the stream pointer to the anInteger-th object

isPositionable

Answer true if the stream supports moving backwards with #skip:.

position

Answer the current value of the stream pointer

position: anInteger

Move the stream pointer to the anInteger-th object

reset

Move the stream back to its first element. For write-only streams, the stream is truncated there.

setToEnd

Move the current position to the end of the stream.

size

Answer the size of data on which we are streaming.

skip: anInteger

Move the current position by anInteger places, either forwards or backwards.