stream-tell ( stream -- n )
Factor handbook » Input and output » Streams » Stream protocol

Prev:stream-seekable? ( stream -- ? )
Next:stream-seek ( n seek-type stream -- )


Vocabulary
io

Inputs
streama stream


Outputs
nan integer


Word description
Returns the index of the stream pointer if the stream is seekable.

Notes
Stream seeking is not supported on streams that do not have a known length, e.g. TCP/IP streams.

See also
stream-seek, stream-seekable?, stream-length

Definition

GENERIC: stream-tell ( stream -- n )


Methods