Stream

A parent interface for all stream types

Members

Functions

close
void close()

Closes the stream. Closed stream cannot be read or written any more

seekable
bool seekable()

Returns true if it is legal to use Seekable functionality on this stream

Inherited Members

From Seekable

getPosition
StreamPos getPosition()

Returns current position

setPosition
bool setPosition(StreamPos pos)

Attempts to set current position to pos. Returns true on success, false on failure

size
StreamSize size()

Returns the size of a stream in bytes

position
StreamPos position(StreamPos pos)
StreamPos position()

Attempts to set current position to pos. Throws SeekException on failure

seek
StreamPos seek(StreamOffset amount)

Relatively changes position. amount defines an offset from the current position (can be negative). Throws SeekException on failure

Meta